Is there a way that I can define a macro similar to C/C++ macros in Javascript?
I want to use this for debug statements: Something like
#ifdef TEST
With Builder – https://github.com/electricimp/Builder, you can do like:
@macro MYDEBUG(x) debug(@{__FILE__}, @{x}); @end ... @{MYDEBUG(100500)}
Also supports for includes directly from GitHub.