网站首页
编程语言
数据库
系统相关
其他分享
编程问答
及行数
2024-05-24
lua打印调用的函数文件及行数
lua根据调用堆栈可以打印调谁调用了我 string.split=function(s,delim)localsplit={}localpattern="[^"..delim.."]+"string.gsub(s,pattern,function(v)table.insert(split,v)end)returnsplitendfunctiongetWhoCallsMe()