The current version of our preprocessor is severly outdated, and it would be nice to use the latest version provided with ogre.
This one comes with a few fixes, as well as support for elifs statements.
To update the preprocessor I did the following.
- Copied the file from here:
- Remove the missing includes
- #include "OgrePlatform.h"
- #include "OgreLogManager.h"
- Replace the logger by the snprintf function
- Revert the change
- https://github.com/OGRECave/ogre/commit/856c276ebd4cb7100f4b133b0e5b29cbc8558653#diff-0d58870a84fae51c4dc7ca8f15c2d4a2
- Replace the Error () calls by ErrorHandler()
- Add the default parameter everywhere.
- Replace Assert calls by ENSURE
- Remove #include <assert.h>
- Add #include "lib/debug.h"