Skip to content

SlardarDev/fis-preprocessor-c-style-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

fis extension for C STYLE MACRO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published