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

Readme

Keywords

Package Sidebar

Install

npm i fis-preprocessor-c-style-macro

Weekly Downloads

0

Version

1.0.4

License

ISC

Last publish

Collaborators

  • lixi520