diff options
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/common.c | 2 | ||||
-rw-r--r-- | code/qcommon/q_shared.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 7cdfa85..e8a95a5 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -40,8 +40,6 @@ int demo_protocols[] = #define MIN_COMHUNKMEGS 56 #define DEF_COMHUNKMEGS 64 #define DEF_COMZONEMEGS 24 -#define XSTRING(x) STRING(x) -#define STRING(x) #x #define DEF_COMHUNKMEGS_S XSTRING(DEF_COMHUNKMEGS) #define DEF_COMZONEMEGS_S XSTRING(DEF_COMZONEMEGS) diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index 54b8bfb..99edd69 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -174,6 +174,10 @@ typedef int clipHandle_t; #define NULL ((void *)0) #endif +#define STRING(s) #s +// expand constants before stringifying them +#define XSTRING(s) STRING(s) + #define MAX_QINT 0x7fffffff #define MIN_QINT (-MAX_QINT-1) |