Skip to content

Commit

Permalink
MAINT: Small fixes to fail macros (pyodide#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hood Chatham authored Jan 12, 2021
1 parent 5e237e2 commit f663085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/error_handling.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ log_error(char* msg);

#define FAIL_IF_NULL(ref) \
do { \
if (ref == NULL) { \
if ((ref) == NULL) { \
FAIL(); \
} \
} while (0)

#define FAIL_IF_MINUS_ONE(num) \
do { \
if (num != 0) { \
if ((num) == -1) { \
FAIL(); \
} \
} while (0)
Expand Down

0 comments on commit f663085

Please sign in to comment.