Returns the position in the hook chain the currently executing hook occupies
Behaviour
- Returns the position in the hook chain the currently executing hook occupies
Definition
int64_t hook_pos (void);
Example
int64_t pos =
hook_pos();
Parameters
This API has no parameters
Return Code
Type | Description |
---|---|
int64_t | The position in the chain the currently executing hook occupies. The first position is 0. |