Skip to content

Commit

Permalink
Print LuaJIT version on startup and add luajit version func.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jan 22, 2019
1 parent 73d77a8 commit 5017f1f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kt/scripts/kt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -881,3 +881,14 @@ function queue_clear(inmap, outmap)
outmap.num = tostring(#keys)
return kt.RVSUCCESS
end


-- get luajit version.
function jit_version(inmap, outmap)
outmap.version = "v" .. jit.version
return kt.RVSUCCESS
end

if kt.thid == 0 then
kt.log("system", "luajit version: " .. jit.version)
end

0 comments on commit 5017f1f

Please sign in to comment.