Skip to main content

别名

  • debug.getupvalues

参数

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

返回值

table
One-based array table containing the function upvalues. Empty when none are present.

示例

Read all upvalues from a Lua closure or stack level.