diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-21 21:53:43 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-21 21:53:43 -0500 |
commit | 78553e775f618d20e328bc85c635fbab4bf43d60 (patch) | |
tree | 6821c5bad562617030e0208045491c98f4daf75d /src/honey_lua.c | |
parent | fd6e5bcef96ac5e769470823e24b984c9394bfd5 (diff) |
add table recurtion to honey_lua_create_table and fix input setup
Diffstat (limited to 'src/honey_lua.c')
-rw-r--r-- | src/honey_lua.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/honey_lua.c b/src/honey_lua.c index 076fb65..1cbd483 100644 --- a/src/honey_lua.c +++ b/src/honey_lua.c @@ -33,6 +33,12 @@ void honey_lua_push_element(lua_State* L, honey_lua_element element) lua_pushcfunction(L, element.data.function); break; + case HONEY_TABLE: + honey_lua_create_table(L, + element.data.table.elements, + element.data.table.n_elements); + break; + default: // this should never happen break; |