Debug.gethook

From GiderosMobile
Revision as of 15:26, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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