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

TypeDescription
int64_tThe position in the chain the currently executing hook occupies. The first position is 0.