mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
define STRING and XSTRING in q_shared.h (#4054)
This commit is contained in:
parent
011285c232
commit
ec846d23b2
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -517,8 +517,6 @@ int main( int argc, char **argv )
|
|||
// Run time
|
||||
const SDL_version *ver = SDL_Linked_Version( );
|
||||
|
||||
#define STRING(s) #s
|
||||
#define XSTRING(s) STRING(s)
|
||||
#define MINSDL_VERSION \
|
||||
XSTRING(MINSDL_MAJOR) "." \
|
||||
XSTRING(MINSDL_MINOR) "." \
|
||||
|
|
Loading…
Reference in a new issue