Skip to content

Commit cc101bc

Browse files
committed
更新文档
1 parent 22bb12e commit cc101bc

File tree

2 files changed

+7
-32
lines changed

2 files changed

+7
-32
lines changed

docs/luadebug/utility.lua

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
55
---
66
local utility = {}
77

8-
---
9-
---@return string
10-
---获取当前路径
11-
---
12-
function utility.fs_current_path()
13-
end
14-
15-
---
16-
---@return string
17-
---获取exe所在目录
18-
---
19-
function utility.fs_program_path()
20-
end
21-
228
---
239
--- * Windows下的行为
2410
--- 1. 向主线程发送WM_QUIT消息。
@@ -34,22 +20,4 @@ end
3420
function utility.closeprocess()
3521
end
3622

37-
---
38-
---@param str string
39-
---@return string
40-
---将utf8字符串转为ansi。
41-
---仅在Windows下有效。
42-
---
43-
function utility.u2a(str)
44-
end
45-
46-
---
47-
---@param str string
48-
---@return string
49-
---将ansi字符串转为utf8。
50-
---仅在Windows下有效。
51-
---
52-
function utility.a2u(str)
53-
end
54-
5523
return utility

docs/luadebug/visitor.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,13 @@ end
299299
function visitor.costatus(co)
300300
end
301301

302+
---
303+
---@return integer
304+
---等价于`collectgarbage "count"`。
305+
---
306+
function visitor.gccount()
307+
end
308+
302309
---@class visitor.cfunctioninfo
303310
---@field tostring string
304311
---@field file_name string

0 commit comments

Comments
 (0)