#ifndef SHED_H #define SHED_H #include #ifdef __WASM__ typedef uint32_t ShedObject; typedef uint32_t ShedStringLength; #else typedef uint64_t ShedObject; typedef uint64_t ShedStringLength; #endif extern ShedObject const shed_unit; struct ShedString { ShedStringLength length; uint8_t data[]; }; typedef struct ShedString* ShedString; struct ShedClosure { void* function; ShedObject freeVariables[]; }; typedef struct ShedClosure ShedClosureStruct; typedef struct ShedClosure* ShedClosurePointer; typedef ShedObject* ShedEnv; ShedObject shed__runtime__print(ShedClosurePointer closurePointer, ShedString value); ShedClosureStruct shed__runtime__print_closure = { .function = shed__runtime__print, .freeVariables = {}, }; #endif