From: TimePath Date: Sun, 19 Jun 2016 06:58:04 +0000 (+1000) Subject: Move EMPTY and DEFER macros X-Git-Tag: xonotic-v0.8.2~782 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e78b3833a581612022ebe7c034c1d61d4c0b96f;p=xonotic%2Fxonotic-data.pk3dir.git Move EMPTY and DEFER macros --- diff --git a/qcsrc/lib/macro.qh b/qcsrc/lib/macro.qh index dff3710a5..1541b9997 100644 --- a/qcsrc/lib/macro.qh +++ b/qcsrc/lib/macro.qh @@ -14,3 +14,6 @@ #define _STR(it) #it #define STR(it) _STR(it) + +#define EMPTY() +#define DEFER(id) id EMPTY() diff --git a/qcsrc/lib/misc.qh b/qcsrc/lib/misc.qh index 950000f04..21e0c5239 100644 --- a/qcsrc/lib/misc.qh +++ b/qcsrc/lib/misc.qh @@ -1,9 +1,6 @@ #pragma once #ifdef __STDC__ - #define EMPTY() - #define DEFER(id) id EMPTY() - #define EVAL(...) EVAL1(EVAL1(EVAL1(__VA_ARGS__))) #define EVAL1(...) EVAL2(EVAL2(EVAL2(__VA_ARGS__))) #define EVAL2(...) EVAL3(EVAL3(EVAL3(__VA_ARGS__)))