Add serialization functions to groundvm.h

This commit is contained in:
2026-03-04 10:44:40 +11:00
parent ede2f06ef8
commit d0b39eb972

View File

@@ -212,6 +212,10 @@ void groundAddFieldToStruct(GroundStruct* gstruct, char* name, GroundValue field
// Use argc to set count of args, accepts that amount of GroundValue's after // Use argc to set count of args, accepts that amount of GroundValue's after
GroundValue groundRunFunction(GroundFunction* function, size_t argc, ...); GroundValue groundRunFunction(GroundFunction* function, size_t argc, ...);
bool serializeProgramToFile(const char* path, const GroundProgram* prog);
bool deserializeProgramFromFile(const char* path, GroundProgram* out);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif