aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test_c.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-28 22:19:04 +1000
committerDavid Walter Seikel2014-03-28 22:19:04 +1000
commitc61df1e41984efa46fe1e6acd88509390472c97f (patch)
tree50dddf7b0a781f07a2bb5881d5209a841c223c4d /ClientHamr/GuiLua/test_c.c
parentTypo-- (diff)
downloadSledjHamr-c61df1e41984efa46fe1e6acd88509390472c97f.zip
SledjHamr-c61df1e41984efa46fe1e6acd88509390472c97f.tar.gz
SledjHamr-c61df1e41984efa46fe1e6acd88509390472c97f.tar.bz2
SledjHamr-c61df1e41984efa46fe1e6acd88509390472c97f.tar.xz
More random notes.
Diffstat (limited to 'ClientHamr/GuiLua/test_c.c')
-rw-r--r--ClientHamr/GuiLua/test_c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test_c.c b/ClientHamr/GuiLua/test_c.c
index e3fd801..e8c2bfd 100644
--- a/ClientHamr/GuiLua/test_c.c
+++ b/ClientHamr/GuiLua/test_c.c
@@ -114,6 +114,9 @@ int luaopen_test_c(lua_State *L)
114 // Save this module in the C registry. 114 // Save this module in the C registry.
115 lua_setfield(L, LUA_REGISTRYINDEX, ourName); 115 lua_setfield(L, LUA_REGISTRYINDEX, ourName);
116 116
117// TODO - This is too verbose. I've had an idea for writing some sort of generic wrapper, though others have done the same.
118// http://www.lua.org/pil/25.3.html seems the most reasonable of the examples I've found.
119
117// skang.thing('cfooble,c', 'Help text goes here', 1, 'number', \"'edit', 'The fooble:', 1, 1, 10, 50\", true) 120// skang.thing('cfooble,c', 'Help text goes here', 1, 'number', \"'edit', 'The fooble:', 1, 1, 10, 50\", true)
118 lua_getfield(L, skang, "thing"); 121 lua_getfield(L, skang, "thing");
119 lua_pushstring(L, "cfooble,c"); 122 lua_pushstring(L, "cfooble,c");