blob: 9075a0e95a16d777612763c53f5b045831f8cba7 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
---@meta _
---#DES 'arg'
---@type string[]
arg = {}
---#DES 'assert'
---@generic T
---@param v? T
---@param message? any
---@param ... any
---@return T
---@return any ... => args[reti + 1]
---@throw => args[1].isFalsy
---@narrow v => args[1].truly
function assert(v, message, ...) end
--[[@@@
---@overload fun(opt: 'collect') # ---#DESTAIL 'cgopt.collect'
---@overload fun(opt: 'stop') # ---#DESTAIL 'cgopt.stop'
---@overload fun(opt: 'restart') # ---#DESTAIL 'cgopt.restart'
---@overload fun(opt: 'count'): integer # ---#DESTAIL 'cgopt.count'
---@overload fun(opt: 'step'): boolean # ---#DESTAIL 'cgopt.step'
---@overload fun(opt: 'isrunning'): boolean # ---#DESTAIL 'cgopt.isrunning'
---#if VERSION >= 5.4 then
---@overload fun(opt: 'incremental'
, pause?: integer
, stepmul?: integer
, stepsize?: integer) # ---#DESTAIL 'cgopt.incremental'
---@overload fun(opt: 'generational'
, minor?: integer
, major?: integer) # ---#DESTAIL 'cgopt.generational'
---#end
---@overload fun(opt: 'setpause', arg: integer) # ---#DESTAIL 'cgopt.setpause'
---@overload fun(opt: 'setstepmul', arg: integer) # ---#DESTAIL 'cgopt.setstepmul'
---@prototype
]]
function collectgarbage(...) end
---#DES 'dofile'
---@param filename? string
---@return any
---@custom dofile
function dofile(filename) end
---#DES 'error'
---@param message any
---@param level? integer
---@throw
function error(message, level) end
|