Function

GumInterceptorsave

Declaration [src]

void
gum_interceptor_save (
  GumInvocationState* state
)

Description [src]

Records the calling thread’s current invocation depth into state, to be restored later with gum_interceptor_restore(). Use this around a non-local exit such as a longjmp() that would otherwise skip the bookkeeping the interceptor does as intercepted calls return.

Parameters

state

Type: GumInvocationState

Return location for the saved state.

The argument will be set by the function.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.