ccpp
ccpp copied to clipboard
#if, #else, #endif don't work with whitespace in front of it
Example:
if(missingItems.Length > 0) {
#if DEPENDENCY_ITEMEXCHANGE
print("DEPENDENCY DETECTED");
#else
print("DEPENDENCY NOT HERE");
#endif
}
Because of the tab in front of #if it doesn't work
This is actually a good thing, because this parser doesn't have any context info, so it would break inline scripts:
const string manialink = """
#Will_Break
#Wont_Break
"""