Serene Runtime 1.0.0
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_closure_t Struct Reference

#include <closures.h>

Collaboration diagram for srn_closure_t:
[legend]

Data Fields

srn_fnptr_t fn
 Entry point on the closure, duh!
 
srn_context_tctx
 The context in which this closure is defined.
 
uint32_t arity
 How many args are needed for full application.
 

Detailed Description

Definition at line 27 of file closures.h.

Field Documentation

◆ arity

uint32_t srn_closure_t::arity

How many args are needed for full application.

((uint32_t) -1) means variadic

Definition at line 35 of file closures.h.

◆ ctx

srn_context_t* srn_closure_t::ctx

The context in which this closure is defined.

Context contains the environment for fn's free bindings too.

Definition at line 32 of file closures.h.

◆ fn

srn_fnptr_t srn_closure_t::fn

Entry point on the closure, duh!

Definition at line 29 of file closures.h.


The documentation for this struct was generated from the following file: