Skip to main content

Alias

  • debug.getupvalues

Arguments

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

Retours

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

Exemple

Read all upvalues from a Lua closure or stack level.