Debug.getupvalue

From GiderosMobile
Revision as of 10:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === This function returns the name and the value of the upvalue with index up of the function func. The fu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

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(funcup,)

'func: (function) function to look for upvalue '
'up: (number) index of the upvalue '
Returns (string) the name of upvalue
Returns (varies) the value of upvalue