From c407e5b904a69f3849831ba88074440707f0c6cd Mon Sep 17 00:00:00 2001 From: sanine-a Date: Wed, 21 Oct 2020 19:53:22 -0500 Subject: add honey_lua.h and honey_lua.h --- src/lua/honey_lua.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/lua/honey_lua.c (limited to 'src/lua/honey_lua.c') diff --git a/src/lua/honey_lua.c b/src/lua/honey_lua.c new file mode 100644 index 0000000..36ca335 --- /dev/null +++ b/src/lua/honey_lua.c @@ -0,0 +1,40 @@ +#include "honey_lua.h" + +void honey_lua_create_table(lua_State* L, + honey_lua_element* elements, + unsigned int n_elements) +{ + lua_createtable(L, 0, n_elements); + + for (int i=0; i