FIRE-22866: Add __UNIXTIME__ preprocessor macro, patch from WolfGang Senizen

meow-7.2.2
Kadah_Coba 2018-08-04 17:32:04 -07:00
parent d5e82e3db7
commit cc463a7c62
1 changed files with 2 additions and 0 deletions

View File

@ -1347,6 +1347,8 @@ void FSLSLPreprocessor::start_process()
ctx.add_macro_definition(def, false);
def = llformat("__SHORTFILE__=\"%s\"", name.c_str());
ctx.add_macro_definition(def, false);
def = llformat("__UNIXTIME__=%i", (S32)time_corrected());
ctx.add_macro_definition(def, false);
ctx.add_macro_definition("list(...)=((list)(__VA_ARGS__))", false);
ctx.add_macro_definition("float(...)=((float)(__VA_ARGS__))", false);