diff options
author | aap <aap@papnet.eu> | 2019-06-19 15:22:42 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-19 15:28:13 +0200 |
commit | ea73d7a284069d41515c0280e7ed8bd9e047a150 (patch) | |
tree | 748f7b8258d24eff50ccd22dd01d44ef83bf0437 /src/common.h | |
parent | some CPed flags named from SA (diff) | |
download | re3-ea73d7a284069d41515c0280e7ed8bd9e047a150.tar re3-ea73d7a284069d41515c0280e7ed8bd9e047a150.tar.gz re3-ea73d7a284069d41515c0280e7ed8bd9e047a150.tar.bz2 re3-ea73d7a284069d41515c0280e7ed8bd9e047a150.tar.lz re3-ea73d7a284069d41515c0280e7ed8bd9e047a150.tar.xz re3-ea73d7a284069d41515c0280e7ed8bd9e047a150.tar.zst re3-ea73d7a284069d41515c0280e7ed8bd9e047a150.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index 46c22c20..5552a5c2 100644 --- a/src/common.h +++ b/src/common.h @@ -138,11 +138,12 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con #define debug(f, ...) re3_debug("[DBG]: " f, __VA_ARGS__) #define DEV(f, ...) re3_debug("[DEV]: " f, __VA_ARGS__) #define TRACE(f, ...) re3_trace(__FILE__, __LINE__, __FUNCTION__, f, __VA_ARGS__) +#define Error(f, ...) re3_debug("[ERROR]: " f, __VA_ARGS__) #define assert(_Expression) (void)( (!!(_Expression)) || (re3_assert(#_Expression, __FILE__, __LINE__, __FUNCTION__), 0) ) #define ASSERT assert -#define _TODO(x) +#define _TODO(x) #define _TODOCONST(x) (x) #define VALIDATE_SIZE(struc, size) static_assert(sizeof(struc) == size, "Invalid structure size of " #struc) |