Skip to content

Engine → Bindings → call_counters.h

counting_thunk

Syntax

template <native_function_id Id, typename Ret, typename... Args> struct counting_thunk<Id, Ret(Args...)>

Variables

AccessNameTypeDefaultDescription
publicsTargetstatic inline function_pointernullptrThe slot's original pointer (process-wide: one native table per process, like script_runtime).

Functions

Public

invoke

static Ret invoke(
    Args... args);

Increments the counter and forwards every argument by value.