diff options
author | David Walter Seikel | 2014-05-16 11:55:16 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-16 11:55:16 +1000 |
commit | 10dae68ead959518650884a91bc2ca75a0afada0 (patch) | |
tree | cf0a0c0f050cc546cc34bc67693232357a558fa2 /src/purkle | |
parent | TODO++ (diff) | |
download | SledjHamr-10dae68ead959518650884a91bc2ca75a0afada0.zip SledjHamr-10dae68ead959518650884a91bc2ca75a0afada0.tar.gz SledjHamr-10dae68ead959518650884a91bc2ca75a0afada0.tar.bz2 SledjHamr-10dae68ead959518650884a91bc2ca75a0afada0.tar.xz |
Skang moduleBegin() stuffs the module in the C registry, so no one has to do this now.
NOTE - It uses a Lua debug function for this.
Diffstat (limited to 'src/purkle')
-rw-r--r-- | src/purkle/purkle.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/purkle/purkle.c b/src/purkle/purkle.c index f86f3f3..6c211c0 100644 --- a/src/purkle/purkle.c +++ b/src/purkle/purkle.c | |||
@@ -65,8 +65,6 @@ int luaopen_purkle(lua_State *L) | |||
65 | 65 | ||
66 | // local _M = skang.moduleBegin('test_c', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', nil, false) | 66 | // local _M = skang.moduleBegin('test_c', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', nil, false) |
67 | push_lua(L, "@ ( $ ~ $ $ $ ~ ! )", skang, MODULEBEGIN, ourName, "Copyright 2014 David Seikel", "0.1", "2014-05-08 07:18:00", 0, 1); | 67 | push_lua(L, "@ ( $ ~ $ $ $ ~ ! )", skang, MODULEBEGIN, ourName, "Copyright 2014 David Seikel", "0.1", "2014-05-08 07:18:00", 0, 1); |
68 | lua_setfield(L, LUA_REGISTRYINDEX, ourName); | ||
69 | lua_getfield(L, LUA_REGISTRYINDEX, ourName); | ||
70 | _M = lua_gettop(L); | 68 | _M = lua_gettop(L); |
71 | 69 | ||
72 | push_lua(L, "@ ( = $ $ & $ )", skang, THINGASM, _M, "append", "Append text to the history box.", append, "string", 0); | 70 | push_lua(L, "@ ( = $ $ & $ )", skang, THINGASM, _M, "append", "Append text to the history box.", append, "string", 0); |