ccpp
ccpp copied to clipboard
ccpp, a general purpose single-header preprocessor library.
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
(Using the Openplanet 1.21.0 build for TMTurbo) The line ``` #if (TURBO && MANIA32) || (MP41 && MANIA64) ``` produces the errors ``` [ ScriptEngine] [23:04:52] Unexpected operator '(' in...
For some reason when you check `!SIG_COMPETITION` it doesn't pass the statement. I've attached a video with different examples on what works and fails. You can see how `Setting_OverlayScaling` error...
For example: ```asc #if VERSION_MAJOR >= 2 && VERSION_MINOR < 4 // ... #endif ```
Would be nice to avoid repetition when making code, while also removing useless function calls.