当前位置:网站首页>[forward] how to view UserData in Lua
[forward] how to view UserData in Lua
2020-11-06 21:09:00 【Cockroach bully L】
local function printMetaTableFun(t)
local rs_tb={}
local function tmp(t)
if t then
for _val, _val_type in pairs(t) do
if type(_val_type)~="userdata" then
if not string.find(_val,"_") then
table.insert(rs_tb,_val)
end
end
end
local ft=getmetatable(t)
if ft then
tmp(ft)
end
end
end
tmp(getmetatable(t))
table.sort(rs_tb)
local rs_str=""
for i=1,#rs_tb do
rs_str=rs_str .. rs_tb[i] .. "\n"
end
print(rs_str)
end
printMetaTableFun(touch)
版权声明
本文为[Cockroach bully L]所创,转载请带上原文链接,感谢
边栏推荐
- python100例項
- Elasticsearch database | elasticsearch-7.5.0 application construction
- What are Devops
- The native API of the future trend of the front end: web components
- ado.net和asp.net的关系
- Unity performance optimization
- Isn't data product just a report? absolutely wrong! There are university questions in this category
- 【学习】接口测试用例编写和测试关注点
- Behind the first lane level navigation in the industry
- An article will take you to understand CSS alignment
猜你喜欢
Road to simple HTML + JS to achieve the most simple game Tetris
Tron smart wallet PHP development kit [zero TRX collection]
Pn8162 20W PD fast charging chip, PD fast charging charger scheme
Markdown tricks
IPFs rudder filecoin landing at the same time, fil currency price broke a thousand
2020年数据库技术大会助力技术提升
解决 WPF 绑定集合后数据变动界面却不更新的问题
An article takes you to understand CSS pagination examples
大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术
What kind of music do you need to make for a complete game?
随机推荐
Kubernetes and OAM to build a unified, standardized application management platform knowledge! (Internet disk link attached)
代码重构之法——方法重构分析
消息队列(MessageQueue)-分析
Analysis of serilog source code -- how to use it
GUI engine evaluation index
Road to simple HTML + JS to achieve the most simple game Tetris
The importance of big data application is reflected in all aspects
Python basic variable type -- list analysis
Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios
嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:王涛
Using iceberg on kubernetes to create a new generation of cloud original data Lake
Try to build my mall from scratch (2): use JWT to protect our information security and perfect swagger configuration
ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column
Basic usage of Vue codemirror: search function, code folding function, get editor value and verify in time
【:: 是什么语法?】
递归、回溯算法常用数学基础公式
With this artifact, quickly say goodbye to spam messages
Use modelarts quickly, zero base white can also play AI!
Description of phpshe SMS plug-in
大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术