Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

fis-preprocessor-c-style-macro

1.0.4 • Public • Published

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

install

npm i fis-preprocessor-c-style-macro

Downloadsweekly downloads

1

version

1.0.4

license

ISC

repository

githubgithub

last publish

collaborators

  • avatar