1.0.4 • Published 9 years ago
fis-preprocessor-c-style-macro v1.0.4
fis-preprocessor-c-style-macro
fis extension for C STYLE MACRO this is a fis plugin to preprocess javascript, it makes the javascript has ability to use predefined macros like C languange or JAVA.
for example:
var a = C_EXTENSION('LINE__'); // current line no
var b = C_EXTENSION('FILE__'); // current fine name
var c = C_EXTENSION('TIME__'); // fis compile time
var d = C_EXTENSION('DATE__'); // fis compile date
function func() { var methodname = C_EXTENSION('METHOD__'); // func }
C_EXTENSION('DEBUG__', function () { console.log('123'); }); // when using fis with -o option, this code fragments will be removed in the out, else, the output is: // (function () {console.log('123');}());