summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-03-21 11:22:52 -0500
committersanine-a <sanine.not@pm.me>2023-03-21 11:22:52 -0500
commit78eb15d59190c079b1edb405eeae6696724f1b2e (patch)
tree19341cac36443766950d1483952074068d0609b4 /src/util
parent184a9517a619c0052aabd8ad6ab00ed0d2607e97 (diff)
move modules.h -> common.h and add version numbers
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util.h2
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 }