diff options
author | David Walter Seikel | 2014-03-27 23:29:14 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-27 23:29:14 +1000 |
commit | 8533027f70680a20f8e12a35a36bf71e5c98298d (patch) | |
tree | f4a130095aa2622214fe34c6923e227e22fe32aa | |
parent | Make test_c a real Lua module, but just a test one doing it the usual way, no... (diff) | |
download | SledjHamr-8533027f70680a20f8e12a35a36bf71e5c98298d.zip SledjHamr-8533027f70680a20f8e12a35a36bf71e5c98298d.tar.gz SledjHamr-8533027f70680a20f8e12a35a36bf71e5c98298d.tar.bz2 SledjHamr-8533027f70680a20f8e12a35a36bf71e5c98298d.tar.xz |
Pointers to various URLs that might be useful.
-rw-r--r-- | ClientHamr/GuiLua/GuiLua.c | 3 | ||||
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 1 | ||||
-rw-r--r-- | ClientHamr/GuiLua/test_c.c | 11 |
3 files changed, 15 insertions, 0 deletions
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 | |||
77 | matrix-RAD TODO just wont work, as it uses symbols. On the other hand, | 77 | matrix-RAD TODO just wont work, as it uses symbols. On the other hand, |
78 | we will be using Lua tables anyway. B-) | 78 | we will be using Lua tables anyway. B-) |
79 | 79 | ||
80 | The last half of http://passingcuriosity.com/2009/extending-lua-in-c/ | ||
81 | might be of use. | ||
82 | |||
80 | */ | 83 | */ |
81 | 84 | ||
82 | 85 | ||
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 | |||
143 | moduleEnd = function (module) | 143 | moduleEnd = function (module) |
144 | -- TODO - Look for _NAME.properties, and load it into the modules Things. | 144 | -- TODO - Look for _NAME.properties, and load it into the modules Things. |
145 | -- TODO - Parse command line parameters at some point. | 145 | -- TODO - Parse command line parameters at some point. |
146 | -- http://stackoverflow.com/questions/3745047/help-locate-c-sample-code-to-read-lua-command-line-arguments | ||
146 | setfenv(2, module.savedEnvironment) | 147 | setfenv(2, module.savedEnvironment) |
147 | end | 148 | end |
148 | 149 | ||
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 @@ | |||
1 | /* Should be a Lua skang module, roughly the same as test.lua | 1 | /* Should be a Lua skang module, roughly the same as test.lua |
2 | 2 | ||
3 | |||
4 | Seems to be several problems with linking in various OSes, heres some | ||
5 | possibly helpful links - | ||
6 | |||
7 | http://lua.2524044.n2.nabble.com/C-Lua-modules-not-compatible-with-every-Lua-interpreter-td7647522.html | ||
8 | http://lua-users.org/wiki/LuaProxyDllFour | ||
9 | http://stackoverflow.com/questions/11492194/how-do-you-create-a-lua-plugin-that-calls-the-c-lua-api?rq=1 | ||
10 | http://lua-users.org/lists/lua-l/2008-01/msg00671.html | ||
11 | |||
12 | |||
13 | |||
3 | */ | 14 | */ |
4 | 15 | ||
5 | 16 | ||