Preprocessor.js icon indicating copy to clipboard operation
Preprocessor.js copied to clipboard

#define + #ifdef don't produce the correct output

Open christianfriedl opened this issue 9 years ago • 2 comments

Hi,

in the file testprep.js, I tried the following variations:

// #define var DEBUG=1 (or) // #define DEBUG 1 (or) // #define DEBUG=1

(and then in the same file): // #ifdef DEBUG console.log('debug'); // #else console.log('nodebug'); // #endif

console.log('after');

However, the output is always the same: $ preprocess testprep.js

console.log('nodebug');

console.log('after');

So either I'm completely misinterpreting the intent, or it isn't working

christianfriedl avatar May 02 '15 19:05 christianfriedl

Sorry, this project is not maintained anymore. Give https://github.com/dcodeIO/MetaScript a try!

dcodeIO avatar May 02 '15 20:05 dcodeIO

Or you can use forked version: https://github.com/nashdot/Preprocessor.js

STAH avatar Feb 02 '16 13:02 STAH