-
Notifications
You must be signed in to change notification settings - Fork 4
/
definitions.lua
52 lines (37 loc) · 963 Bytes
/
definitions.lua
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
51
52
---@diagnostic disable:lowercase-global
---@type boolean
SERVER = nil
---@type boolean
CLIENT = nil
E2Helper = {}
E2Lib = {}
wire_expression2_funcs = {}
---@param msg string
---@param level integer?
---@param trace table
---@param can_catch boolean? Default true
function E2Lib.raiseException(msg, level, trace, can_catch)
end
---@param name string
---@param value number
function E2Lib.registerConstant(name, value, literal)
end
---@param num integer
function __e2setcost(num) end
---@param name string
---@param id string
---@param def any
function registerType(name, id, def, ...)
end
---@param name string name of the function
---@param pars string params
---@param rets string ret
---@param func function
---@param cost number?
---@param argnames table?
function registerOperator(name, pars, rets, func, cost, argnames)
end
registerFunction = registerOperator
---@param name string
---@param cb function
function registerCallback(name, cb) end