summaryrefslogtreecommitdiff
path: root/src/util/fatal_error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/fatal_error.h')
-rw-r--r--src/util/fatal_error.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/fatal_error.h b/src/util/fatal_error.h
index 988ec1d..e1dda38 100644
--- a/src/util/fatal_error.h
+++ b/src/util/fatal_error.h
@@ -31,17 +31,17 @@
// ==============================================================================
// Early return if device is nullptr (headless mode stub)
-#define HEADLESS_RETURN_IF_NULL(device) \
- do { \
- if ((device) == nullptr) \
- return; \
+#define HEADLESS_RETURN_IF_NULL(device) \
+ do { \
+ if ((device) == nullptr) \
+ return; \
} while (0)
// Early return with value if device is nullptr (headless mode stub)
-#define HEADLESS_RETURN_VAL_IF_NULL(device, val) \
- do { \
- if ((device) == nullptr) \
- return (val); \
+#define HEADLESS_RETURN_VAL_IF_NULL(device, val) \
+ do { \
+ if ((device) == nullptr) \
+ return (val); \
} while (0)
#endif /* defined(STRIP_ALL) || defined(FINAL_STRIP) */