From d0b39eb972645f0370be37e4a24c9937719cbcfc Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Wed, 4 Mar 2026 10:44:40 +1100 Subject: [PATCH] Add serialization functions to groundvm.h --- include/groundvm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/groundvm.h b/include/groundvm.h index cf7e8fb..24ec574 100644 --- a/include/groundvm.h +++ b/include/groundvm.h @@ -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 GroundValue groundRunFunction(GroundFunction* function, size_t argc, ...); + +bool serializeProgramToFile(const char* path, const GroundProgram* prog); +bool deserializeProgramFromFile(const char* path, GroundProgram* out); + #ifdef __cplusplus } #endif