当前位置:网站首页>[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]所创,转载请带上原文链接,感谢
边栏推荐
- Small program introduction to proficient (2): understand the four important files of small program development
- Outsourcing is really difficult. As an outsourcer, I can't help sighing.
- Summary of front-end performance optimization that every front-end engineer should understand:
- To Lianyun analysis: why is IPFs / filecoin mining so difficult?
- Bitcoin once exceeded 14000 US dollars and is about to face the test of the US election
- Get twice the result with half the effort: automation without cabinet
- Zero basis to build a web search engine of its own
- DC-1靶機
- 2020-08-20:GO语言中的协程与Python中的协程的区别?
- An article will introduce you to CSS3 background knowledge
猜你喜欢

What are PLC Analog input and digital input

ORA-02292: 违反完整约束条件 (MIDBJDEV2.SYS_C0020757) - 已找到子记录

2020-08-29:进程线程的区别,除了包含关系之外的一些区别,底层详细信息?

From overseas to China, rancher wants to do research on container cloud market

jenkins安装部署过程简记

Introduction to the structure of PDF417 bar code system

The method of realizing high SLO on large scale kubernetes cluster

大会倒计时|2020 PostgreSQL亚洲大会-中文分论坛议程安排

JVM内存分配 -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m

Python basic data type -- tuple analysis
随机推荐
2020-09-03:裸写算法:回形矩阵遍历。
Metersphere developer's Manual
ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column
Using an example to understand the underlying processing mechanism of JS function
How to prepare for the system design interview
嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:曾文旌
Vue communication and cross component listening state Vue communication
递归、回溯算法常用数学基础公式
事务的隔离级别与所带来的问题
常用SQL语句总结
StickEngine-架构12-通信协议
大会倒计时|2020 PostgreSQL亚洲大会-中文分论坛议程安排
Summary of front-end performance optimization that every front-end engineer should understand:
Flink's datasource Trilogy: direct API
如何在终端启动Coda 2中隐藏的首选项?
2020-08-20:GO语言中的协程与Python中的协程的区别?
实用工具类函数(持续更新)
ES6 learning notes (4): easy to understand the new grammar of ES6
Try to build my mall from scratch (2): use JWT to protect our information security and perfect swagger configuration
Elasticsearch database | elasticsearch-7.5.0 application construction