You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, at the moment there is no way to enable a section of code if two or more variables are defined.
let's say I want to have a generic "DEBUG" compilation mode wich, if enabled, automatically "enable" the logs, enable some UI modifications, etc. I also want some more fine grained variables; something along the lines of ENABLE_LOGS, ENABLE_UI_NEXT etc...
At the moment I need to duplicate the code and do something like
As far as I know, at the moment there is no way to enable a section of code if two or more variables are defined.
let's say I want to have a generic "DEBUG" compilation mode wich, if enabled, automatically "enable" the logs, enable some UI modifications, etc. I also want some more fine grained variables; something along the lines of ENABLE_LOGS, ENABLE_UI_NEXT etc...
At the moment I need to duplicate the code and do something like
...normal stuff...
//#ifdef DEBUG
console.log('log debug stuff');
//#endif
//#ifdef ENABLE_LOGS
console.log('log debug stuff');
//#endif
...normal stuff...
it would be neat, for me, to do something like
//#ifdef DEBUG or ENABLE_LOGS
console.log('log debug stuff');
//#endif
I have no specified sintax for the boolean combination, if "and" and "not" or "&&" and "||" or some variant are fine
The text was updated successfully, but these errors were encountered: