Difference between revisions of "Debug.getupvalue"

From GiderosMobile
Line 14: Line 14:
 
'''<translate>Returns</translate>''' (string) <translate>the name of upvalue</translate><br/>
 
'''<translate>Returns</translate>''' (string) <translate>the name of upvalue</translate><br/>
 
'''<translate>Returns</translate>''' (varies) <translate>the value of upvalue</translate><br/>
 
'''<translate>Returns</translate>''' (varies) <translate>the value of upvalue</translate><br/>
 +
 +
{{Debug}}

Revision as of 22:06, 11 February 2020


Available since: Gideros 2011.6
Class: debug

Description

This function returns the name and the value of the upvalue with index up of the function func. The function returns nil if there is no upvalue with the given index.

(string), (varies) = debug.getupvalue(func,up)

Parameters

func: (function) function to look for upvalue
up: (number) index of the upvalue

Return values

Returns (string) the name of upvalue
Returns (varies) the value of upvalue