diff options
Diffstat (limited to 'include/common.hpp')
-rw-r--r-- | include/common.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/common.hpp b/include/common.hpp index df41aa1..7028296 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -58,10 +58,7 @@ typedef unsigned int uint; #define BREAKPOINT __asm__("int $3") -inline const char* coalesce(const char * p1, const char * p2) -{ - return ((p1 == nullptr) ? p2 : p1); -} +#define coalesce(v1, v2) ((v1 != nullptr) ? v1 : v2) /** * Creates a coordinate of integers. |