当前位置:网站首页>[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]所创,转载请带上原文链接,感谢
边栏推荐
- Analysis of serilog source code -- how to use it
- Summary of front-end performance optimization that every front-end engineer should understand:
- Get twice the result with half the effort: automation without cabinet
- What is alicloud's experience of sweeping goods for 100 yuan?
- CCR coin frying robot: the boss of bitcoin digital currency, what you have to know
- 事务的本质和死锁的原理
- Git rebase is in trouble. What to do? Waiting line
- This project allows you to quickly learn about a programming language in a few minutes
- ado.net和asp.net的关系
- Contract trading system development | construction of smart contract trading platform
猜你喜欢

What is alicloud's experience of sweeping goods for 100 yuan?

Understanding formatting principles

【字节跳动 秋招岗位开放啦】Ohayoo!放学别走,我想约你做游戏!!!

消息队列(MessageQueue)-分析

统计项目代码行数

CloudQuery V1.2.0 版本发布

The legality of IPFs / filecoin: protecting personal privacy from disclosure

An article will take you to understand SVG gradient knowledge

面试官: ShardingSphere 学一下吧

Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
随机推荐
嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:曾文旌
CCR coin frying robot: the boss of bitcoin digital currency, what you have to know
What are the common problems of DTU connection
2020-08-29:进程线程的区别,除了包含关系之外的一些区别,底层详细信息?
递归、回溯算法常用数学基础公式
How to turn data into assets? Attracting data scientists
Outsourcing is really difficult. As an outsourcer, I can't help sighing.
(2) ASP.NET Core3.1 Ocelot routing
Flink's datasource Trilogy: direct API
Tron smart wallet PHP development kit [zero TRX collection]
Git rebase is in trouble. What to do? Waiting line
大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术
hdu3974 Assign the task線段樹 dfs序
意派Epub360丨你想要的H5模板都在这里,电子书、大转盘、红包雨、问卷调查……
The method of realizing high SLO on large scale kubernetes cluster
2020-09-03:裸写算法:回形矩阵遍历。
Why is quicksort so fast?
Basic usage of Vue codemirror: search function, code folding function, get editor value and verify in time
Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios
如何对数据库账号权限进行精细化管理?