Is there a way to do this? I would like to be able to do this http://www.angelcode.com/angelscript/sdk/docs/manual/doc_addon_build.html#doc_addon_build_condition but define SERVER or CLIENT from within my script. Thank you!
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
#define preprocessor directives from within Angelscript
The CScriptBuilder does not currently have support for defining new words from the script. However, you can easily customize the CScriptBuilder on your own to add this support.
You may want to take a look at preprocessor written years ago by Anthony Casteel. Can't see the anything linking to it on the page itself, but fast googling shows that it's still around. Other than #define and friends, you'll also get #include and skeleton for #pragma what should be enough even for bigger scripts.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement