Advertisement

CScriptBuilder #elif, #else

Started by November 04, 2018 11:56 AM
5 comments, last by gjl 6 years ago

It would be great to have these keywords included by default in the script builder addon. It's kind of a pain to use precompiler options currently. Maybe even a way to negate an #if? (#if ! or so.)

Yeah, that would be great :)

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

So, I tried implementing #else and #elif into CScriptBuilder but gave up because I wasn't happy with the way the code looked. So, instead, I wrote my own general purpose preprocessor. Feel free to include it (or not) into CScriptBuilder.

I will also be adding an option to my version of CScriptBuilder to disable #if and #endif.

Rather than adding your code to the CScriptBuilder I'll refer to it on my resources page so others can use it if they desire. :)

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

That would be cool, too! Thanks! :)

Nice!

This topic is closed to new replies.

Advertisement