diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h index ab68330..293397c 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -10,12 +10,14 @@ struct honey_tbl_t { union { lua_Integer integer; lua_CFunction function; + const char *string; } value; }; #define H_INT(k, v) { .key=k, .type=LUA_TNUMBER, .value.integer=v } #define H_ENUM(v) { .key=#v, .type=LUA_TNUMBER, .value.integer=v } #define H_FUNC(k, v) { .key=k, .type=LUA_TFUNCTION, .value.function=v } +#define H_STR(k, v) { .key=k, .type=LUA_TSTRING, .value.string=v } #define H_END { .key=NULL, .type=LUA_TNIL, .value.integer=0 } |