debug.setconstant
Sets the wanted constant at the specified index. An error will be returned if the index is invalid.
Parameters
func
- The Lua function/level whose constant would be set.index
- The position of the constant.value
- New constant replacing the old one.
Example
Last updated