debug.setupvalue

Sets an upvalue for a function

Prototype

debug.setupvalue (function, upvalue, value)

Description

Similar to debug.setlocal, sets the values of the upvalue for the nominated function. See also debug.getupvalue.

Lua functions

Topics