File tree Expand file tree Collapse file tree 2 files changed +7
-32
lines changed
Expand file tree Collapse file tree 2 files changed +7
-32
lines changed Original file line number Diff line number Diff line change 55---
66local 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消息。
3420function utility .closeprocess ()
3521end
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-
5523return utility
Original file line number Diff line number Diff line change 299299function visitor .costatus (co )
300300end
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
You can’t perform that action at this time.
0 commit comments