aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-16 11:55:16 +1000
committerDavid Walter Seikel2014-05-16 11:55:16 +1000
commit10dae68ead959518650884a91bc2ca75a0afada0 (patch)
treecf0a0c0f050cc546cc34bc67693232357a558fa2 /lib
parentTODO++ (diff)
downloadSledjHamr-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 'lib')
-rw-r--r--lib/skang.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/skang.lua b/lib/skang.lua
index 0f91e44..394c3f8 100644
--- a/lib/skang.lua
+++ b/lib/skang.lua
@@ -95,6 +95,7 @@ moduleBegin = function (name, author, copyright, version, timestamp, skin, isLua
95 -- Returning it at the end does the same thing. 95 -- Returning it at the end does the same thing.
96 -- This is so that we can have all the module stuff at the top, in this function. 96 -- This is so that we can have all the module stuff at the top, in this function.
97 -- Should do this before any further require(), so that circular references don't blow out. 97 -- Should do this before any further require(), so that circular references don't blow out.
98 debug.getregistry()[name] = _M -- Stuff the result in the C registry.
98 99
99 -- Save the callers environment. 100 -- Save the callers environment.
100 local savedEnvironment 101 local savedEnvironment