aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index 0098e5a1..f8c4ccca 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -27,8 +27,8 @@
#include <stdlib.h>
#include <string.h>
-#define TRY_THROW(exp) if (!(exp)) goto except;
-#define TRY_RET(exp) if (!(exp)) return 0;
+#define TRY_THROW(exp) do { if (!(exp)) goto except; } while (0)
+#define TRY_RET(exp) do { if (!(exp)) return 0; } while (0)
static inline bool
fancy_syntax(const SerdReader* reader)