This commit is contained in:
Gered 2013-04-02 13:21:46 -04:00
parent f052171e41
commit 2ae39ff14f

View file

@ -6,12 +6,12 @@
typedef const char* TYPE_IDENT; typedef const char* TYPE_IDENT;
#define TYPE_DEFINE(type, value) \ #define TYPE_DEFINE(type, value) \
static #type GetType() \ static type GetType() \
{ \ { \
static #type typeName = #value; \ static type typeName = value; \
return typeName; \ return typeName; \
} \ } \
#type GetTypeOf() const \ type GetTypeOf() const \
{ \ { \
return GetType(); \ return GetType(); \
} }