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...")
 
Line 4: Line 4:
 
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).
 
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).
 
<source lang="lua">
 
<source lang="lua">
(function) (string) (number), = debug.gethook()
+
(function), (string), (number) = debug.gethook()
 
</source>
 
</source>
 
'''Returns''' (function) function that works as hook<br/>
 
'''Returns''' (function) function that works as hook<br/>
 
'''Returns''' (string) provided mask of the hook<br/>
 
'''Returns''' (string) provided mask of the hook<br/>
 
'''Returns''' (number) hook count<br/>
 
'''Returns''' (number) hook count<br/>

Revision as of 11:17, 23 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()

Returns (function) function that works as hook
Returns (string) provided mask of the hook
Returns (number) hook count