🎉 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!
Preprocessor
It now supports #ifdef, #ifndef, and #endif. There have been changes to how it works. It is no longer tied to angelscript at all: it is it's own seperate entity. It makes no effort to preserve line numbering or file names for error reporting from angelscript. It will preprocess a correct file correctly, but there is no guarantee that an incorrect file won't pass right through it.
It proved quicker to write it again from scratch than to refactor it, so I did.
The interface is somewhat different. You call the function 'preprocess' with two arguments: A source file and a destination file. The preprocessed file is saved to the destination file, which you can then load and send to angelscript on your own.
http://www.omnisu.com/preprocessor.zip
Enjoy. Er. Christmas present? :D
I suppose right now it's equivilant to calling another exe and keeping the intermediate file; with the exception that it can be changed to behave differently.
Also, this is just a general subset of a much more specific preprocessor I needed to write to convert lots of old scripts to a more angelscript friendly structure. It has to do things like pull global variables out and change a funky message-label syntax to function declarations.
Also, this is just a general subset of a much more specific preprocessor I needed to write to convert lots of old scripts to a more angelscript friendly structure. It has to do things like pull global variables out and change a funky message-label syntax to function declarations.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement