diff options
Diffstat (limited to 'runtime/src/closures.h')
| -rw-r--r-- | runtime/src/closures.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/src/closures.h b/runtime/src/closures.h new file mode 100644 index 00000000..50cae18b --- /dev/null +++ b/runtime/src/closures.h @@ -0,0 +1,17 @@ +#ifndef SHED_CLOSURES_H +#define SHED_CLOSURES_H + +#include "./primitives.h" + +struct ShedClosure { + void* function; + ShedObject freeVariables[]; +}; + +typedef struct ShedClosure ShedClosureStruct; + +typedef struct ShedClosure* ShedClosurePointer; + +typedef ShedObject* ShedEnv; + +#endif |
