Difference between revisions of "Debug.gethook"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <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">
+
<syntaxhighlight lang="lua">
 
(function), (string), (number) = debug.gethook()
 
(function), (string), (number) = debug.gethook()
</source>
+
</syntaxhighlight>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (function) <translate>function that works as hook</translate><br/>
 
'''<translate>Returns</translate>''' (function) <translate>function that works as hook</translate><br/>

Latest revision as of 15: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