From 7ddebdbe4756f1c81f5e6a245420cc69a48fbd1b Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 28 Mar 2014 03:34:11 +1000 Subject: Shuffle the version printing around. --- ClientHamr/GuiLua/skang.lua | 4 +++- ClientHamr/GuiLua/test.lua | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ClientHamr') diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index bd712f2..b7cf59b 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -136,6 +136,8 @@ moduleBegin = function (name, author, copyright, version, timestamp, skin) -- Dunno if this causes problems with the do ... end style of joining modules. It does. So we need to restore in moduleEnd(). -- Next question, does this screw with the environment of the skang module? No it doesn't, coz that's set up at require 'skang' time. + print('Loaded module ' .. _M._NAME .. ' version ' .. _M.VERSION .. ', ' .. _M.COPYRIGHT .. '.\n ' .. _M.VERSION_DESC) + return _M end @@ -149,7 +151,7 @@ end -- Call this now so that from now on, this is like any other module. local _M = moduleBegin('skang', 'David Seikel', 'Copyright 2014 David Seikel', '0.1', '2014-03-27 02:57:00') -print('Skang loaded, running under Lua version ' .. _VERSION) +print('Skang is running under Lua version ' .. _VERSION) csv2table = function (csv) diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index 2115098..3c2e9ab 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua @@ -49,8 +49,6 @@ local skang = require 'skang' local test = require 'test' local test_c = require 'test_c' -print('MODULE ' .. test._NAME .. ', ' .. test.COPYRIGHT .. ' Version: ' .. test.VERSION .. '\n' .. test.VERSION_DESC .. '\n') - print('foo = ' .. test.foo .. ' ->> ' .. skang.things.foo.help) print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action) test.ffunc('one', 2) -- cgit v1.1