diff options
author | sanine-a <sanine.not@pm.me> | 2023-03-21 11:22:52 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-03-21 11:22:52 -0500 |
commit | 78eb15d59190c079b1edb405eeae6696724f1b2e (patch) | |
tree | 19341cac36443766950d1483952074068d0609b4 /src/util | |
parent | 184a9517a619c0052aabd8ad6ab00ed0d2607e97 (diff) |
move modules.h -> common.h and add version numbers
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 } |