如何使用编译时间作为自动版本控制信息? [英] how to use the compiling time as automatic versioning-info?
本文介绍了如何使用编译时间作为自动版本控制信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何常量或#pragma来获取时间和日期,当程序编译得到一种自动版本信息?
is there any constant or #pragma to get the time and date, when the programm was beeing compiled to get a kind of an automatic version-info ?
推荐答案
__ DATE __
和 __ TIME __
是预定义的宏,它们将扩展到当前日期,并且时间,分别。
__DATE__
and __TIME__
are predefined macros that will expand to the current date, and time, respectively.
这篇关于如何使用编译时间作为自动版本控制信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文