Difference between revisions of "Debug.gethook"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<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> | <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> | ||
<source lang="lua"> | <source lang="lua"> | ||
(function), (string), (number) = debug.gethook() | (function), (string), (number) = debug.gethook() | ||
</source> | </source> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (function) <translate>function that works as hook</translate><br/> | + | '''<translate>Returns</translate>''' (function) <translate>function that works as hook</translate><br/> |
− | '''Returns''' (string) <translate>provided mask of the hook</translate><br/> | + | '''<translate>Returns</translate>''' (string) <translate>provided mask of the hook</translate><br/> |
− | '''Returns''' (number) <translate>hook count</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>hook count</translate><br/> |
Revision as of 07:27, 24 August 2018
Available since: Gideros 2011.6
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