Saltar al contenido principal

Alias

  • debug.getupvalues

Argumentos

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

Retornos

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

Ejemplo

Read all upvalues from a Lua closure or stack level.