Skip to main content

别名

  • debug.getprotos

参数

function | number
必填
Lua function or stack level whose nested functions are returned.

返回值

table
One-based array table containing nested functions. Empty when none are present.

示例

Clone every nested Proto from a Lua closure into an array of new L closures.