aboutsummarylogtreecommitdiffstats
path: root/string-tick.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-05-12 22:20:33 -0400
committerAntony Kellermann2018-05-12 22:20:33 -0400
commitac147a717cc3a06e75bf41539b19dbfb775482f2 (patch)
tree7ec1dee346ab84bed80f35f07fae0d3ec7cf02dd /string-tick.h
parentd78e3c5dceaaa0b1862db6ecaa44f1425d7244e4 (diff)
downloadaur-ac147a717cc3a06e75bf41539b19dbfb775482f2.tar.gz
Added return/goto macros to portfolio.c and improved code documentation
Diffstat (limited to 'string-tick.h')
-rw-r--r--string-tick.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/string-tick.h b/string-tick.h
index 4680f5e7caf0..7d507024dd9d 100644
--- a/string-tick.h
+++ b/string-tick.h
@@ -1,6 +1,21 @@
#ifndef STRING_TICK_H
#define STRING_TICK_H
+#define RET_MSG(msg) {\
+ puts(msg);\
+ return;\
+}
+
+#define RETNULL_MSG(msg) {\
+ puts(msg);\
+ return NULL;\
+}
+
+#define GOTO_CLEAN_MSG(msg) {\
+ puts(msg);\
+ goto cleanup;\
+}
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>