summaryrefslogtreecommitdiff
path: root/meta/template/debug.lua
blob: 8db01634567353c10756fa270bf7f9d33a76eb8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---@class debug
debug = {}

function debug.debug() end

---@param o any
---@return table
function debug.getfenv(o) end

---@param co thread?
---@return function hook
---@return string mask
---@return integer count
function debug.gethook(co) end

---@alias infowhat '"nSltufL"'
---@alias finfo
---| '""'

---@overload fun(f: integer|function, what: infowhat?):finfo
function debug.getinfo1(thread, f, what) end