forked from ground/ground-old
Add serialization functions to groundvm.h
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user