Fix header C++ compatibility

This commit is contained in:
2025-12-13 13:20:55 +11:00
parent 057c50b295
commit 5d0cedb759

View File

@@ -115,6 +115,10 @@ typedef struct GroundFunction {
size_t startLine; size_t startLine;
} GroundFunction; } GroundFunction;
#ifdef __cplusplus
extern "C" {
#endif
GroundProgram groundCreateProgram(); GroundProgram groundCreateProgram();
void groundAddInstructionToProgram(GroundProgram* program, GroundInstruction instruction); void groundAddInstructionToProgram(GroundProgram* program, GroundInstruction instruction);
GroundValue groundRunProgram(GroundProgram* program); GroundValue groundRunProgram(GroundProgram* program);
@@ -126,5 +130,8 @@ GroundArg groundCreateReference(GroundArgType type, char* ref);
GroundValue groundCreateValue(GroundValueType type, ...); GroundValue groundCreateValue(GroundValueType type, ...);
#ifdef __cplusplus
}
#endif
#endif #endif