aboutsummaryrefslogtreecommitdiffstats
path: root/out
diff options
context:
space:
mode:
Diffstat (limited to 'out')
-rw-r--r--out/lua.c2
-rw-r--r--out/main.c2
-rw-r--r--out/makefile2
-rw-r--r--out/test.lua3
4 files changed, 5 insertions, 4 deletions
diff --git a/out/lua.c b/out/lua.c
index b204e4b..2e2da3f 100644
--- a/out/lua.c
+++ b/out/lua.c
@@ -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 */
diff --git a/out/main.c b/out/main.c
index be01f97..2573bad 100644
--- a/out/main.c
+++ b/out/main.c
@@ -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