§tiro_resumable_frame_desc

Represents construction parameters for a resumable function.

#include "tiro/functions.h"

§Public Attributes

Name
tiro_handle_tname
The function name.
size_targ_count
The number of function parameters (0 by default).
size_tlocal_count
The number of locals usable by a function frame.
tiro_handle_tclosure
An arbitrary value (may be NULL) that will be passed to the function (via the frame) on each invocation.
tiro_resumable_function_tfunc
The native function pointer that implements the resumable function.

§Public Attributes Documentation

§variable name

tiro_handle_t name;

The function name.

Must be set to a valid string.

§variable arg_count

size_t arg_count;

The number of function parameters (0 by default).

The maximum number of function arguments is limited to a reasonable amount (currently 1024).

§variable local_count

size_t local_count;

The number of locals usable by a function frame.

The maximum number of function locals is limited to a reasonable amount (currently 2 ** 14).

§variable closure

tiro_handle_t closure;

An arbitrary value (may be NULL) that will be passed to the function (via the frame) on each invocation.

The value is shared by all call frames created for this function.

§variable func

tiro_resumable_function_t func;

The native function pointer that implements the resumable function.


Updated on 2022-02-27 at 21:17:13 +0100