node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org ยป

fis-preprocessor-c-style-macro

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');}());