From 19d5b1ce3423f158ea857a1fe54ed7a03523c63e Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 27 Mar 2014 18:12:44 +1000 Subject: Make test_c a real Lua module, but just a test one doing it the usual way, not a skang module, yet. --- ClientHamr/GuiLua/test.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ClientHamr/GuiLua/test.lua') diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index 58f8d19..b1ab691 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua @@ -35,7 +35,7 @@ skang.thing('foo') -- We can use inline functions if we don't need the function internally. skang.thing('ffunc', 'Help Text', function (arg1, arg2) - print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2) + print('Inside test.ffunc(' .. arg1 .. ', ' .. arg2 .. ')') end, 'number,string') print('Ending soon') @@ -47,12 +47,14 @@ end -- Test it. 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) +test_c.ffunc(0, 'zero') --skang.things.ffunc('seven', 'aight') print('') -- cgit v1.1