lua函数说明
来源:互联网 发布:mediawiki 数据库配置 编辑:程序博客网 时间:2024/06/08 06:57
debug.getinfo([thread],function[,what])
function,可以是一个数,0代表(getinfo),1代表调用getinfo的函数,如果超出调用堆栈函数返回nil.
what,可以是下面的字符或者它们的组合,getinfo将根据what来填充返回的表.
'n'填充name和namewhat字段
'S'填充source,short_src,linedefined,lastlinedefined和what
'l'填充currentline,函数当前执行.
'u' 填充nups,函数的upvalue数量.
'f'填充func,level对应的函数.
'L' pushes onto the stack a table whose indices are the numbers of the lines that are valid on the function. (A valid line is a line with some associated code, that is, a line where you can put a break point. Non-valid lines include empty lines and comments.)
debug.getfunv(o)
返回对象o的环境.如果这样使用debug.getfunv(debug.getinfo(level,'f').func)就可以访问level的环境表.
0 0
- lua函数说明
- lua部分函数说明
- Lua常用函数说明
- Lua string函数说明
- Ascent-Lua函数详细说明
- Lua和C的交互说明(函数)
- LUA 一些常用函数的简单注解说明
- Lua和C的交互说明(函数)
- Lua脚本语法说明
- lua coroutine 参数说明
- Lua脚本语法说明
- LUA库函数功能说明
- Lua脚本语法说明
- Lua脚本语法说明
- lua语法说明详解
- lua编译说明
- Lua脚本语法说明
- lua 中 self 说明
- 用Python使用pcDuino的外部中断
- 用gcc编译opencv程序出错
- 【CSE 104 – Assignment 01 – Java单链表建立】
- oracle在windows命令行启动
- 仿QQ5.0缩放式侧滑栏的实现
- lua函数说明
- STL中 如何在遍历中使用 iterator/reverse_iterator 删除元素
- visitedUserIdvisitedUserIdvisitedUserIdvisitedUserIdvisitedUserIdvisitedUserIdvisitedUserIdvisitedUs
- Cocos2d-JS环境配置教程
- 毕达哥斯拉三元组poj1305
- 【冒泡排序、选择排序、插入排序总结】
- SpringMVC与Spring集成
- 内存中的分区以及堆区和栈区的区别
- Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connecti