Just out of curiosity, I wonder if the value set by the standard __TIME__ preprocessor macro __TIME__ be changed within a single translation unit?
In other words, __TIME__ is determined once during preprocessing, and then committed or revised each time it occurs?
If this is not specified by the C standard, is there a standard de facto behavior among the main implementations (gnu, clang, intel, msvc)?
c macros c-preprocessor
marack
source share