aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr/GuiLua/test_c.c')
-rw-r--r--ClientHamr/GuiLua/test_c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test_c.c b/ClientHamr/GuiLua/test_c.c
index 6faf928..ae21139 100644
--- a/ClientHamr/GuiLua/test_c.c
+++ b/ClientHamr/GuiLua/test_c.c
@@ -158,6 +158,7 @@ int luaopen_test_c(lua_State *L)
158 lua_call(L, 2, 0); 158 lua_call(L, 2, 0);
159 159
160// skang.thingasm(_M, 'cfunc', 'cfunc does nothing really', cfunc, 'number,string') 160// skang.thingasm(_M, 'cfunc', 'cfunc does nothing really', cfunc, 'number,string')
161// push_lua(L, "@ @ $ $ & $", skang, "thingasm", LUA_REGISTRYINDEX, ourName, "cfunc", "cfunc does nothing really", cfunc, "number,string");
161 lua_getfield(L, skang, "thingasm"); 162 lua_getfield(L, skang, "thingasm");
162 lua_getfield(L, LUA_REGISTRYINDEX, ourName); // Coz getfenv() can't find C environment. 163 lua_getfield(L, LUA_REGISTRYINDEX, ourName); // Coz getfenv() can't find C environment.
163 lua_pushstring(L, "cfunc"); 164 lua_pushstring(L, "cfunc");