Created
October 31, 2013 01:46
-
-
Save zodiac1111/7243244 to your computer and use it in GitHub Desktop.
简单的打印编译日期,使用gcc的宏
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//打印编译构建的日期和时间,类似:Dec 3 2012 09:59:57 | |
#define PRINT_BUILD_TIME { \ | |
printf("\tBuild time:\t%s %s\n", \ | |
__DATE__, __TIME__); \ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment