§tiro::sync_frame

Represents the call frame of a synchronous function call. More...

#include "tiropp/functions.hpp"

§Public Functions

Name
sync_frame(tiro_vm_t raw_vm, tiro_sync_frame_t raw_frame)
sync_frame(const sync_frame & ) =delete
sync_frame &operator=(const sync_frame & ) =delete
size_targ_count() const
Returns the number of arguments passed to this function call.
handlearg(size_t index) const
Returns the argument at the given index (0 <= index < argc).
handleclosure() const
Returns the closure value referenced by this function (if any).
tiro_vm_traw_vm() const
tiro_sync_frame_traw_frame() const

§Detailed Description

class tiro::sync_frame;

Represents the call frame of a synchronous function call.

References to sync_frames are only valid from within the surrounding function call.

§Public Functions Documentation

§function sync_frame

inline sync_frame(
tiro_vm_t raw_vm,
tiro_sync_frame_t raw_frame
)

§function sync_frame

sync_frame(
const sync_frame &
) =delete

§function operator=

sync_frame & operator=(
const sync_frame &
) =delete

§function arg_count

inline size_t arg_count() const

Returns the number of arguments passed to this function call.

§function arg

inline handle arg(
size_t index
) const

Returns the argument at the given index (0 <= index < argc).

§function closure

inline handle closure() const

Returns the closure value referenced by this function (if any).

§function raw_vm

inline tiro_vm_t raw_vm() const

§function raw_frame

inline tiro_sync_frame_t raw_frame() const

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