fpc

fis-preprocessor-c-style-macro

fis extension for C STYLE MACRO

Showing:

Popularity

Downloads/wk

4

GitHub Stars

3

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

5

Size (min+gzip)

41.8KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100