define / ifdef
Does not seem to work:
// #define var X=true
// #ifdef X
console.log('hi')
// #endif
How about // #define var X=1?
It also doesn't work with var!!!!
It seems that // #ifdef and // #ifndef only work together with the passed defines (!!!!) and that // #define ONLY works together with put!!!! That is completely not what I expected.
This really is a problem and together with the include_once issue makes this preprocessor nearly useless for me. I could emulate include_once if this would work (just like in c).
Deprecation notice: Preprocessor.js has been deprecated in favor of MetaScript, a much more JavaScripty way for build time meta programming using JavaScript itself as the meta language. Check out the migration guide to get a quick impression of its merits.
Awesome!