From 8533027f70680a20f8e12a35a36bf71e5c98298d Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 27 Mar 2014 23:29:14 +1000 Subject: Pointers to various URLs that might be useful. --- ClientHamr/GuiLua/GuiLua.c | 3 +++ ClientHamr/GuiLua/skang.lua | 1 + ClientHamr/GuiLua/test_c.c | 11 +++++++++++ 3 files changed, 15 insertions(+) diff --git a/ClientHamr/GuiLua/GuiLua.c b/ClientHamr/GuiLua/GuiLua.c index d70061d..150f51f 100644 --- a/ClientHamr/GuiLua/GuiLua.c +++ b/ClientHamr/GuiLua/GuiLua.c @@ -77,6 +77,9 @@ The pre tokenized widget structure thingy I had planned in the matrix-RAD TODO just wont work, as it uses symbols. On the other hand, we will be using Lua tables anyway. B-) +The last half of http://passingcuriosity.com/2009/extending-lua-in-c/ +might be of use. + */ diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index 791f79b..565b642 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -143,6 +143,7 @@ end moduleEnd = function (module) -- TODO - Look for _NAME.properties, and load it into the modules Things. -- TODO - Parse command line parameters at some point. + -- http://stackoverflow.com/questions/3745047/help-locate-c-sample-code-to-read-lua-command-line-arguments setfenv(2, module.savedEnvironment) end diff --git a/ClientHamr/GuiLua/test_c.c b/ClientHamr/GuiLua/test_c.c index e7ee388..8d3ab81 100644 --- a/ClientHamr/GuiLua/test_c.c +++ b/ClientHamr/GuiLua/test_c.c @@ -1,5 +1,16 @@ /* Should be a Lua skang module, roughly the same as test.lua + +Seems to be several problems with linking in various OSes, heres some +possibly helpful links - + +http://lua.2524044.n2.nabble.com/C-Lua-modules-not-compatible-with-every-Lua-interpreter-td7647522.html +http://lua-users.org/wiki/LuaProxyDllFour +http://stackoverflow.com/questions/11492194/how-do-you-create-a-lua-plugin-that-calls-the-c-lua-api?rq=1 +http://lua-users.org/lists/lua-l/2008-01/msg00671.html + + + */ -- cgit v1.1