mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 19:58:13 +08:00
4e25c032e6
* TriggerSkill * update type comment * events of phases * lua annotation * change style of enums * clear lua stack * multi lua_State at server side * disable addPlayer when room is full or started * logic:trigger Co-authored-by: Notify-ctrl <notify-ctrl@qq.com>
20 lines
545 B
Lua
20 lines
545 B
Lua
---@diagnostic disable: lowercase-global
|
|
inspect = require "inspect"
|
|
|
|
DebugMode = true
|
|
function PrintWhenMethodCall()
|
|
local info = debug.getinfo(2)
|
|
local name = info.name
|
|
local line = info.currentline
|
|
local namewhat = info.namewhat
|
|
local shortsrc = info.short_src
|
|
if (namewhat == "method") and
|
|
(shortsrc ~= "[C]") and
|
|
(not string.find(shortsrc, "/lib")) then
|
|
print(shortsrc .. ":" .. line .. ": " .. name)
|
|
end
|
|
end
|
|
--debug.sethook(PrintWhenMethodCall, "c")
|
|
|
|
function p(v) print(inspect(v)) end
|