aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dynstr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/dynstr.h b/include/dynstr.h
index 4fc0afa..925423a 100644
--- a/include/dynstr.h
+++ b/include/dynstr.h
@@ -42,7 +42,11 @@
/**
* Convenience macro that calls dynstr_append and returns its error code if failed.
*/
-#define dynstr_append_or_ret(...) {const enum dynstr_err err = dynstr_append(__VA_ARGS__); if (err != DYNSTR_OK) return err;}
+#define dynstr_append_or_ret(...) \
+ { \
+ const enum dynstr_err err = dynstr_append(__VA_ARGS__); \
+ if (err != DYNSTR_OK) return err; \
+ }
/**
* Convenience macro that calls dynstr_append and returns zero if failed.