diff -r e617c9cf6dd3 -r 90073cbb535d util.h --- a/util.h Mon Feb 16 01:32:12 2009 +0200 +++ b/util.h Fri Feb 20 23:07:43 2009 +0200 @@ -9,6 +9,8 @@ #define enum_value_t int #endif +#define lua_pushconststring(L, STRING) { lua_pushlstring (L, STRING, sizeof(STRING)); } + // Array of string2eunm_t's must be ended with pair { NULL, fallback_value } typedef struct { const char *string;