diff options
Diffstat (limited to 'test_.lua')
-rwxr-xr-x | test_.lua | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,11 @@ | |||
1 | #!/usr/bin/env luajit | 1 | #!/usr/bin/env luajit |
2 | 2 | ||
3 | if type(jit) == 'table' then | ||
4 | print(arg[0] .. ' is being run by ' .. jit.version .. ' under ' .. jit.os .. ' on a ' .. jit.arch .. '. Lua version ' .. _VERSION) | ||
5 | else | ||
6 | print(arg[0] .. ' is being run by Lua version ' .. _VERSION) | ||
7 | end | ||
8 | |||
3 | 9 | ||
4 | local _ = require 'PolygLua' | 10 | local _ = require 'PolygLua' |
5 | 11 | ||
@@ -159,3 +165,4 @@ __'date':log():show():Do() | |||
159 | -- Should get that "later" thing printed while the sleep is happening. | 165 | -- Should get that "later" thing printed while the sleep is happening. |
160 | __'date; sleep 5; date':log():show():Do() | 166 | __'date; sleep 5; date':log():show():Do() |
161 | 167 | ||
168 | |||