aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-27 18:12:44 +1000
committerDavid Walter Seikel2014-03-27 18:12:44 +1000
commit19d5b1ce3423f158ea857a1fe54ed7a03523c63e (patch)
tree1bf8c13bd3730ffd75bca0c31d7ab573af91d418 /ClientHamr/GuiLua/test.lua
parentPrint Lua version on skang load. (diff)
downloadSledjHamr-19d5b1ce3423f158ea857a1fe54ed7a03523c63e.zip
SledjHamr-19d5b1ce3423f158ea857a1fe54ed7a03523c63e.tar.gz
SledjHamr-19d5b1ce3423f158ea857a1fe54ed7a03523c63e.tar.bz2
SledjHamr-19d5b1ce3423f158ea857a1fe54ed7a03523c63e.tar.xz
Make test_c a real Lua module, but just a test one doing it the usual way, not a skang module, yet.
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r--ClientHamr/GuiLua/test.lua4
1 files changed, 3 insertions, 1 deletions
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')
35 35
36-- We can use inline functions if we don't need the function internally. 36-- We can use inline functions if we don't need the function internally.
37skang.thing('ffunc', 'Help Text', function (arg1, arg2) 37skang.thing('ffunc', 'Help Text', function (arg1, arg2)
38 print('Inside test.ffunc ' .. arg1 .. ', ' .. arg2) 38 print('Inside test.ffunc(' .. arg1 .. ', ' .. arg2 .. ')')
39end, 'number,string') 39end, 'number,string')
40 40
41print('Ending soon') 41print('Ending soon')
@@ -47,12 +47,14 @@ end
47-- Test it. 47-- Test it.
48local skang = require 'skang' 48local skang = require 'skang'
49local test = require 'test' 49local test = require 'test'
50local test_c = require 'test_c'
50 51
51print('MODULE ' .. test._NAME .. ', ' .. test.COPYRIGHT .. ' Version: ' .. test.VERSION .. '\n' .. test.VERSION_DESC .. '\n') 52print('MODULE ' .. test._NAME .. ', ' .. test.COPYRIGHT .. ' Version: ' .. test.VERSION .. '\n' .. test.VERSION_DESC .. '\n')
52 53
53print('foo = ' .. test.foo .. ' ->> ' .. skang.things.foo.help) 54print('foo = ' .. test.foo .. ' ->> ' .. skang.things.foo.help)
54print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action) 55print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action)
55test.ffunc('one', 2) 56test.ffunc('one', 2)
57test_c.ffunc(0, 'zero')
56--skang.things.ffunc('seven', 'aight') 58--skang.things.ffunc('seven', 'aight')
57print('') 59print('')
58 60