diff options
author | sanine <sanine.not@pm.me> | 2023-03-02 00:20:38 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-03-02 00:20:38 -0600 |
commit | 5bb783912ac384156b8abbe6e83a5a61da73881d (patch) | |
tree | c160295a01871d8e27beadac5fd1d3b9b0308e07 /libs/honeysuckle/examples/table_creation | |
parent | fb0b24647350df9514c5db6f2330921f97804731 (diff) |
fully remove honeysuckle and stop building cglm
Diffstat (limited to 'libs/honeysuckle/examples/table_creation')
-rw-r--r-- | libs/honeysuckle/examples/table_creation/table_creation.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/libs/honeysuckle/examples/table_creation/table_creation.c b/libs/honeysuckle/examples/table_creation/table_creation.c deleted file mode 100644 index 42088c6..0000000 --- a/libs/honeysuckle/examples/table_creation/table_creation.c +++ /dev/null @@ -1,28 +0,0 @@ -#include <honeysuckle.h> - -int main() -{ - lua_State *L = luaL_newstate(); - luaL_openlibs(L); - - /* create the table - * { "one"=1, "two"=2, "half"=0.5, "runme"=[some function] } - */ - luaL_dostring(L, - "return function(self) \n" \ - "print(self.one)\n" \ - "print(self.two)\n" \ - "print(self.half)\n" \ - "end"); - int func_index = lua_gettop(L); - - hs_create_table(L, - hs_str_int("one", 1), - hs_str_int("two", 2), - hs_str_num("half", 0.5f), - hs_str_func("runme", func_index)); - lua_setglobal(L, "runnable"); - - luaL_dostring(L, "runnable:runme()"); - return 0; -} |