Skip to main content
GameDev.net gamedev.net
🔒 Locked

CScriptBuilder #elif, #else

Started by Miss Nov 4, 2018 at 11:56 AM 5 replies 2.4k views
Original Post
Miss
Miss

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.)

WitchLord
WitchLord

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 - <a href="http://www.angelcode.com/tower" rel
Miss
Miss

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.

WitchLord
WitchLord

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 - <a href="http://www.angelcode.com/tower" rel
Miss
Miss

That would be cool, too! Thanks! :)

gjl
gjl

Nice!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.