From: Dale Weiler Date: Wed, 25 Apr 2012 15:45:01 +0000 (-0400) Subject: TYPE_ macros X-Git-Tag: 0.1-rc1~633 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=168fd244bd92a48474391eca5c48be733c860b22;p=xonotic%2Fgmqcc.git TYPE_ macros --- diff --git a/gmqcc.h b/gmqcc.h index 9d94e3a..4408ab2 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -208,14 +208,16 @@ uint32_t util_crc32(const char *, int, register const short); //=================================================================== //=========================== code.c ================================ //=================================================================== -#define TYPE_VOID 0 -#define TYPE_STRING 1 -#define TYPE_FLOAT 2 -#define TYPE_VECTOR 3 -#define TYPE_ENTITY 4 -#define TYPE_FIELD 5 -#define TYPE_FUNCTION 6 -#define TYPE_POINTER 7 +enum { + TYPE_VOID , + TYPE_STRING , + TYPE_FLOAT , + TYPE_VECTOR , + TYPE_ENTITY , + TYPE_FIELD , + TYPE_FUNCTION , + TYPE_POINTER +}; /* * Each paramater incerements by 3 since vector types hold