diff options
author | David Walter Seikel | 2014-03-27 16:18:27 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-27 16:18:27 +1000 |
commit | b1dbb07748db625d504cf2de26372a3f10721e59 (patch) | |
tree | 80eaf095031bfa16c0c0f4e3019f4d6f3af6caaa | |
parent | Add an example of a C Lua module in the test_c comments. (diff) | |
download | SledjHamr-b1dbb07748db625d504cf2de26372a3f10721e59.zip SledjHamr-b1dbb07748db625d504cf2de26372a3f10721e59.tar.gz SledjHamr-b1dbb07748db625d504cf2de26372a3f10721e59.tar.bz2 SledjHamr-b1dbb07748db625d504cf2de26372a3f10721e59.tar.xz |
Lua allows hash bang after all. B-)
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 2 | ||||
-rw-r--r-- | ClientHamr/GuiLua/test.skang | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index 459eca4..58f8d19 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua | |||
@@ -4,7 +4,7 @@ do -- Only I'm not gonna indent this. | |||
4 | 4 | ||
5 | local skang = require 'skang' | 5 | local skang = require 'skang' |
6 | local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ | 6 | local _M = skang.moduleBegin('test', nil, 'Copyright 2014 David Seikel', '0.1', '2014-03-27 03:57:00', [[ |
7 | #!skang test.skang -- This is Lua, so this might not work. | 7 | #!/usr/bin/env skang -- Lua allows this shell hack. |
8 | 8 | ||
9 | -- There's an implied local this = require 'test' | 9 | -- There's an implied local this = require 'test' |
10 | -- There's an implied local skang = require 'skang' | 10 | -- There's an implied local skang = require 'skang' |
diff --git a/ClientHamr/GuiLua/test.skang b/ClientHamr/GuiLua/test.skang index ea53a26..f4e0b8f 100644 --- a/ClientHamr/GuiLua/test.skang +++ b/ClientHamr/GuiLua/test.skang | |||
@@ -1,4 +1,4 @@ | |||
1 | #!skang test.skang -- This is Lua, so this might not work. | 1 | #!/usr/bin/env skang -- Lua allows this shell hack. |
2 | 2 | ||
3 | -- There's an implied local this = require 'test' | 3 | -- There's an implied local this = require 'test' |
4 | -- There's an implied local skang = require 'skang' | 4 | -- There's an implied local skang = require 'skang' |