From 3d3766f53f8a4165db2b631ce991d859d35386b3 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 17 Apr 2014 00:15:09 +1000 Subject: Make C calling Lua easier with wrapper functions, lifted from edje_lua2, and modified a bit. --- ClientHamr/GuiLua/test_c.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ClientHamr/GuiLua/test_c.c') 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) lua_call(L, 2, 0); // skang.thingasm(_M, 'cfunc', 'cfunc does nothing really', cfunc, 'number,string') +// push_lua(L, "@ @ $ $ & $", skang, "thingasm", LUA_REGISTRYINDEX, ourName, "cfunc", "cfunc does nothing really", cfunc, "number,string"); lua_getfield(L, skang, "thingasm"); lua_getfield(L, LUA_REGISTRYINDEX, ourName); // Coz getfenv() can't find C environment. lua_pushstring(L, "cfunc"); -- cgit v1.1