diff options
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> |