summaryrefslogtreecommitdiff
path: root/meta/template/jit.lua
blob: 560e1264a28c260e3da3ce45adac98fedd2683e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---@meta

---@version JIT
---@class jit*
---@field version     string
---@field version_num number
---@field os          string
---@field arch        string
jit = {}

---@overload fun()
---@param func       function|boolean
---@param recursive? boolean
function jit.on(func, recursive) end

---@overload fun()
---@param func       function|boolean
---@param recursive? boolean
function jit.off(func, recursive) end

---@overload fun()
---@overload fun(tr: number)
---@param func       function|boolean
---@param recursive? boolean
function jit.flush(func, recursive) end

---@return boolean status
---@return ...
function jit.status() end

return jit