diff options
author | bloodstalker <thabogre@gmail.com> | 2018-09-16 00:10:42 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-09-16 00:10:42 +0000 |
commit | 9ca06ce6baaa38010af869096cd498ffbf24de94 (patch) | |
tree | 439945811a72cb1c2bd1e413a52646ac868eee13 /out | |
parent | update (diff) | |
download | luatablegen-9ca06ce6baaa38010af869096cd498ffbf24de94.tar.gz luatablegen-9ca06ce6baaa38010af869096cd498ffbf24de94.zip |
update
Diffstat (limited to 'out')
-rw-r--r-- | out/lua.c | 2 | ||||
-rw-r--r-- | out/main.c | 2 | ||||
-rw-r--r-- | out/makefile | 2 | ||||
-rw-r--r-- | out/test.lua | 3 |
4 files changed, 5 insertions, 4 deletions
@@ -578,7 +578,7 @@ int main(int argc, char **argv) { l_message(argv[0], "cannot create state: not enough memory"); return EXIT_FAILURE; } - reg_tablegen_tables(L); + reg_tablegen_tables_wasm(L); lua_pushcfunction(L, &pmain); /* to call 'pmain' in protected mode */ lua_pushinteger(L, argc); /* 1st argument */ lua_pushlightuserdata(L, argv); /* 2nd argument */ @@ -9,5 +9,5 @@ int main(int argc, char **argv) { lua_State *ls = luaL_newstate(); luaL_openlibs(ls); - reg_tablegen_tables(ls); + reg_tablegen_tables_wasm(ls); } diff --git a/out/makefile b/out/makefile index 9723b0c..88a066a 100644 --- a/out/makefile +++ b/out/makefile @@ -3,7 +3,7 @@ SHELL=bash SHELL?=bash CC=clang CC?=clang -CC_FLAGS= +CC_FLAGS= -fPIC CC_EXTRA?= CTAGS_I_PATH?=./ LD_FLAGS= diff --git a/out/test.lua b/out/test.lua index 0ada3a3..8b82bea 100644 --- a/out/test.lua +++ b/out/test.lua @@ -2,9 +2,10 @@ print("Start of REPL test\n") --global_type_t = require("global_type_t") +print(type(global_type_t)) for k,v in pairs(global_type_t) do if type(v) == "function" then - print(i, v) + print(k, v) end end |