hook_pos
Behaviour
Section titled “Behaviour”- Returns the position in the hook chain the currently executing hook occupies.
Definition
Section titled “Definition”int64_t hook_pos(void);
hook_pos()
Example
Section titled “Example”int64_t pos = hook_pos();
const pos = hook_pos()
Parameters
Section titled “Parameters”This API has no parameters
Return Code
Section titled “Return Code”Type | Description |
---|---|
int64_t | The position in the chain the currently executing hook occupies. The first position is 0. |
Type | Description |
---|---|
number | Returns the current position in the hook chain, or an error code if the retrieval fails. |