Skip to main content

별칭

  • debug.getproto

인수

function | number
필수
Lua function or stack level whose nested functions are inspected.
number
필수
One-based nested function index.
boolean
When true, returns live closures for the selected nested function instead of a standalone function.

반환값

function | table
Nested function when active is false or omitted, or a table of live closures when active is true.

예제

Read a nested Proto as a cloned closure, or list live closures for that nested Proto.