util.h
changeset 70 e43e386c8a33
parent 65 f1be8dbb209c
child 72 d049c92d0809
equal deleted inserted replaced
69:ab6d4ee8974c 70:e43e386c8a33
     6 
     6 
     7 // You can set this if anther type is required
     7 // You can set this if anther type is required
     8 #ifndef enum_value_t
     8 #ifndef enum_value_t
     9 #define enum_value_t int
     9 #define enum_value_t int
    10 #endif
    10 #endif
    11 
       
    12 #define lua_pushconststring(L, STRING) { lua_pushlstring (L, STRING, sizeof(STRING)-1); }
       
    13 
    11 
    14 // Array of string2eunm_t's must be ended with pair { NULL, fallback_value }
    12 // Array of string2eunm_t's must be ended with pair { NULL, fallback_value }
    15 typedef struct {
    13 typedef struct {
    16 	const char   *string;
    14 	const char   *string;
    17 	enum_value_t  value;
    15 	enum_value_t  value;