Difference between revisions of "Debug.setupvalue"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/debug|debug]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>This function assigns the value value to the upvalue with index up of the function func. The function returns nil if there is no upvalue with the given index. Otherwise, it returns the name of the upvalue.</translate> | <translate>This function assigns the value value to the upvalue with index up of the function func. The function returns nil if there is no upvalue with the given index. Otherwise, it returns the name of the upvalue.</translate> |
Revision as of 09:27, 24 August 2018
Available since: Gideros 2011.6
Class: debug
Description
This function assigns the value value to the upvalue with index up of the function func. The function returns nil if there is no upvalue with the given index. Otherwise, it returns the name of the upvalue.
(string) = debug.setupvalue(func,up,value)
Parameters
func: (function) function to set the upvalue for
up: (number) index of the upvalue
value: (varies) value to set as upvalue
Return values
Returns (string) name of the upvalue or nil