diff options
author | Antony Kellermann | 2018-05-12 22:20:33 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-05-12 22:20:33 -0400 |
commit | ac147a717cc3a06e75bf41539b19dbfb775482f2 (patch) | |
tree | 7ec1dee346ab84bed80f35f07fae0d3ec7cf02dd /string-tick.h | |
parent | d78e3c5dceaaa0b1862db6ecaa44f1425d7244e4 (diff) | |
download | aur-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.h | 15 |
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> |