From 78eb15d59190c079b1edb405eeae6696724f1b2e Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 21 Mar 2023 11:22:52 -0500 Subject: move modules.h -> common.h and add version numbers --- src/util/util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util') 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 } -- cgit v1.2.1