X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fmacro.qh;h=f2ec6df4a4206e8797f08ecb529fa0faa6adbcb3;hb=3cfa3eaf6856fe76f7fd8c945fbfab2e9e28014c;hp=809708d7439e57fc3870b47714422a653a54667c;hpb=f41d9f31538bef0259d2b2c74536bb977901f99d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/macro.qh b/qcsrc/lib/macro.qh index 809708d74..f2ec6df4a 100644 --- a/qcsrc/lib/macro.qh +++ b/qcsrc/lib/macro.qh @@ -1,7 +1,7 @@ #pragma once #if 1 - void voidfunc() { error("voidfunc"); } + void voidfunc() { } #define MACRO_BEGIN if (1) { #define MACRO_END } else voidfunc() #else @@ -9,8 +9,14 @@ #define MACRO_END } while (0) #endif +/** Marker for use in (RVALUE, (expr)) */ +#define RVALUE 0 + #define _CAT(a, b) a ## b #define CAT(a, b) _CAT(a, b) #define _STR(it) #it #define STR(it) _STR(it) + +#define EMPTY() +#define DEFER(id) id EMPTY()