aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/shed/closures.h
blob: e32244ea482e3c6c5a5f0257ecfc8c952acd1e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SHED_CLOSURES_H
#define SHED_CLOSURES_H

#include "./gc.h"
#include "./primitives.h"

struct ShedClosure {
    struct ShedGcObjectHeader gc_object_header;
    void* function;
    ShedObject freeVariables[];
};

typedef struct ShedClosure ShedClosureStruct;

typedef struct ShedClosure* ShedClosurePointer;

typedef ShedObject* ShedEnv;

#endif