当前位置:网站首页>[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]所创,转载请带上原文链接,感谢
边栏推荐
- The importance of big data application is reflected in all aspects
- Summary of front-end interview questions (C, s, s) that front-end engineers need to understand (2)
- Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
- Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios
- Understanding formatting principles
- Share with Lianyun: is IPFs / filecoin worth investing in?
- Look! Internet, e-commerce offline big data analysis best practice! (Internet disk link attached)
- ES中删除索引的mapping字段时应该考虑的点
- ado.net和asp.net的关系
- Elasticsearch database | elasticsearch-7.5.0 application construction
猜你喜欢
To Lianyun analysis: why is IPFs / filecoin mining so difficult?
Get twice the result with half the effort: automation without cabinet
How does filecoin's economic model and future value support the price of fil currency breaking through thousands
An article will introduce you to HTML tables and their main attributes
Flink's datasource Trilogy 2: built in connector
2020-08-30:裸写算法:二叉树两个节点的最近公共祖先。
Multi robot market share solution
华为云微认证考试简介
What is the purchasing supplier system? Solution of purchasing supplier management platform
Understanding formatting principles
随机推荐
Staying up late summarizes the key points of report automation, data visualization and mining, which is different from what you think
To Lianyun analysis: why is IPFs / filecoin mining so difficult?
The importance of big data application is reflected in all aspects
Road to simple HTML + JS to achieve the most simple game Tetris
Isn't data product just a report? absolutely wrong! There are university questions in this category
An article takes you to understand CSS pagination examples
Contract trading system development | construction of smart contract trading platform
What are the common problems of DTU connection
2020-09-04:函数调用约定了解么?
Can you do it with only six characters?
Look! Internet, e-commerce offline big data analysis best practice! (Internet disk link attached)
统计项目代码行数
hdu3974 Assign the task線段樹 dfs序
代码生成器插件与Creator预制体文件解析
What are Devops
PHP application docking justswap special development kit【 JustSwap.PHP ]
How to turn data into assets? Attracting data scientists
Markdown tricks
华为云微认证考试简介
IPFs rudder filecoin landing at the same time, fil currency price broke a thousand