When file with nested define is preprocessed it's preprocessed as empty string:
preprocessFile "preprocTest_1.sqf"
when -debug param is not present it will preprocess as empty string "". If it's present it will work properly.
When file with nested define is preprocessed it's preprocessed as empty string:
preprocessFile "preprocTest_1.sqf"
when -debug param is not present it will preprocess as empty string "". If it's present it will work properly.
I think I also found the issue with nested ifdef's because of you :D
When it finds a if or ifdef with a false condition, it then proceeds to skip all data until the next #endif
But, that also means it skips if's and ifdefs, causing it to misscount the #endif
So in terms of hierarchy, instead of
#if #ifdef #endif (return back one level) #endif (return back one level)
it does
#if #ifdef (skip) #endif (return back one level) (#if ended) #endif (uh.. what.. eh. uh.. ok.. back one level but we are in root so.. file just ends here)