BM Precompiler?

BlitzMax Forums/BlitzMax Beginners Area/BM Precompiler?

Its just a test to see if M4 is working, the normal BCC would complain about the define() function not existing.

So your code looks like this after processing:
If 1
 ''This code will be compiled
else
 ''This code wont?
end if
Meaning you would have to use the preprocessors conditionals instead of BlitzMaxs.

Heres a better example using C preprocessing syntax that would give the result you expect.
#define PROFILING

#ifdef PROFILING
 ''This code will be compiled
#else
 ''This code wont!
#endif


I realize this is in the Beginners Area, so people might not know how to use this. But this is where the tread was ;)
maybe i should cross post?