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
I believe the EXIT_ERROR/EXIT_RETURN macros should be wrapped in a do-while(0) loop.
At the moment the macro cannot be used in an if/else statement and the trailing semi-colon is unnecessary.
#define EXIT_ERROR(...) do { fprintf(stderr, VA_ARGS); exit(1) } while (0)
The text was updated successfully, but these errors were encountered:
Hi,
I believe the EXIT_ERROR/EXIT_RETURN macros should be wrapped in a do-while(0) loop.
At the moment the macro cannot be used in an if/else statement and the trailing semi-colon is unnecessary.
#define EXIT_ERROR(...) do { fprintf(stderr, VA_ARGS); exit(1) } while (0)
The text was updated successfully, but these errors were encountered: