Нашли или выдавили из себя код, который нельзя назвать нормальным,
на который без улыбки не взглянешь?
Не торопитесь его удалять или рефакторить, — запостите его на
говнокод.ру, посмеёмся вместе!
6.10.8 Predefined macro names
The following macro names shall be defined by the implementation: __DATE__ The date of translation of the preprocessing translation unit: a character string literal of the form "Mmm dd yyyy", where the names of the months are the same as those generated by the asctime function, and the first character of dd is a space character if the value is less than 10. If the date of translation is not available, an implementation-defined valid date shall be supplied.
---
The asctime function converts the broken-down time in the structure pointed to by timeptr into a string in the form
j123123 # 0
А в крестоговне можно без макросов, в constexpr-функцию скармливать __DATE__ и там ее парсить.
guest # 0
А нельзя как-то посчитать системой сборки и передать?
j123123 # 0 ⇈
guest # 0 ⇈
Можете заставить крестошаблонщиков плакать от зависти?
guest # 0
[email protected] # 0 ⇈
CHayT # 0
JloJle4Ka # 0 ⇈
CHayT # 0 ⇈
Desktop # 0
Формат всегда одинаковый?
Steve_Brown # 0 ⇈
The following macro names shall be defined by the implementation:
__DATE__ The date of translation of the preprocessing translation unit: a character string literal of the form "Mmm dd yyyy", where the names of the months are the same as those generated by the asctime function, and the first character of dd is a space character if the value is less than 10. If the date of translation is not available, an implementation-defined valid date shall be supplied.
---
The asctime function converts the broken-down time in the structure pointed to by timeptr into a string in the form using the equivalent of the following algorithm.
Steve_Brown # 0
guest # 0
https://babbage.cs.qc.cuny.edu/courses/cs701/Handouts/rcs_keywords.html
Во времена CVS было очень часто
CEHT9I6PbCKuu_nemyx # 0 ⇈