Skip to main content

Aliases

  • debug.getproto

Argumentos

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

Retornos

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

Exemplo

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