diff options
Diffstat (limited to 'include/misc.h')
-rw-r--r-- | include/misc.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/include/misc.h b/include/misc.h deleted file mode 100644 index 9cb2dde..0000000 --- a/include/misc.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef AMALGAM_MISC_H -#define AMALGAM_MISC_H - -#define return_if_error(result) \ -do { \ - int return_if_result; \ - return_if_result = (result); \ - if((return_if_result) != 0) \ - return return_if_result; \ -} while(0) - -#define cleanup_if_error(result) do { if((result) != 0) goto cleanup; } while(0) - -#if defined(__GNUC__) && __GNUC__ >= 4 -#define CHECK_RESULT __attribute__ ((warn_unused_result)) -#elif defined(_MSC_VER) && _MSC_VER >= 1700 -#define CHECK_RESULT _Check_return_ -#else -#define CHECK_RESULT -#endif - -typedef enum { - bool_false, - bool_true -} bool; - -#endif
\ No newline at end of file |