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
#define FOO 1 should transpile to const FOO = 1;, but #define foo(a,b) (a+b) to const foo = (a,b) => a + b;. Probably need a C preprocessor parser to do this, or somehow to interface with it, see GH-3.
The usage of the C preprocessor causes macro constants to expand in the transpiled output, undesirably. For example:
would rather have
exit(1)
beexit(EXIT_FAILURE)
, possibly with a priorconst EXIT_FAILURE = 1
definition.The text was updated successfully, but these errors were encountered: