From 10dae68ead959518650884a91bc2ca75a0afada0 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 16 May 2014 11:55:16 +1000 Subject: 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. --- src/purkle/purkle.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/purkle') 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) // local _M = skang.moduleBegin('test_c', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', nil, false) push_lua(L, "@ ( $ ~ $ $ $ ~ ! )", skang, MODULEBEGIN, ourName, "Copyright 2014 David Seikel", "0.1", "2014-05-08 07:18:00", 0, 1); - lua_setfield(L, LUA_REGISTRYINDEX, ourName); - lua_getfield(L, LUA_REGISTRYINDEX, ourName); _M = lua_gettop(L); push_lua(L, "@ ( = $ $ & $ )", skang, THINGASM, _M, "append", "Append text to the history box.", append, "string", 0); -- cgit v1.1