debug.setlocal

Sets the value of the local variable

Prototype

debug.setlocal (level, local, value)

Description

Sets the value of the local variable with the index 'local' of the function at 'level' on the stack. See also debug.getlocal.

Lua functions

Topics