Difference between revisions of "Debug.gethook"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns the current hook settings of the thread, as three values: the current hook function, the curre...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | <languages /> |
− | === Description === | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | Returns the current hook settings of the thread, as three values: the current hook function, the current hook mask, and the current hook count (as set by the | + | '''<translate>Class</translate>:''' [[Special:MyLanguage/debug|debug]]<br/> |
− | < | + | === <translate>Description</translate> === |
− | (function) (string) (number) | + | <translate>Returns the current hook settings of the thread, as three values: the current hook function, the current hook mask, and the current hook count (as set by the [[Special:MyLanguage/debug.sethook|debug.sethook]] function).</translate> |
− | </ | + | <syntaxhighlight lang="lua"> |
− | '''Returns''' (function) function that works as hook<br/> | + | (function), (string), (number) = debug.gethook() |
− | '''Returns''' (string) provided mask of the hook<br/> | + | </syntaxhighlight> |
− | '''Returns''' (number) hook count<br/> | + | === <translate>Return values</translate> === |
+ | '''<translate>Returns</translate>''' (function) <translate>function that works as hook</translate><br/> | ||
+ | '''<translate>Returns</translate>''' (string) <translate>provided mask of the hook</translate><br/> | ||
+ | '''<translate>Returns</translate>''' (number) <translate>hook count</translate><br/> | ||
+ | |||
+ | {{Debug}} |
Latest revision as of 14:26, 13 July 2023
Available since: Gideros 2011.6
Class: debug
Description
Returns the current hook settings of the thread, as three values: the current hook function, the current hook mask, and the current hook count (as set by the debug.sethook function).
(function), (string), (number) = debug.gethook()
Return values
Returns (function) function that works as hook
Returns (string) provided mask of the hook
Returns (number) hook count