From b1d60bb06a493b1bd02ea4f02ec7b3656063dba3 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Mon, 28 Oct 2024 23:30:04 +1000 Subject: Various minor tweaks and cleanups. --- test_.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test_.lua') diff --git a/test_.lua b/test_.lua index 1a892a9..872bea7 100755 --- a/test_.lua +++ b/test_.lua @@ -1,5 +1,11 @@ #!/usr/bin/env luajit +if type(jit) == 'table' then + print(arg[0] .. ' is being run by ' .. jit.version .. ' under ' .. jit.os .. ' on a ' .. jit.arch .. '. Lua version ' .. _VERSION) +else + print(arg[0] .. ' is being run by Lua version ' .. _VERSION) +end + local _ = require 'PolygLua' @@ -159,3 +165,4 @@ __'date':log():show():Do() -- Should get that "later" thing printed while the sleep is happening. __'date; sleep 5; date':log():show():Do() + -- cgit v1.1