From 5d0cedb759f928c4a2f72f19860606669826f158 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sat, 13 Dec 2025 13:20:55 +1100 Subject: [PATCH] Fix header C++ compatibility --- include/groundvm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/groundvm.h b/include/groundvm.h index 14916d3..35c29f2 100644 --- a/include/groundvm.h +++ b/include/groundvm.h @@ -115,6 +115,10 @@ typedef struct GroundFunction { size_t startLine; } GroundFunction; +#ifdef __cplusplus +extern "C" { +#endif + GroundProgram groundCreateProgram(); void groundAddInstructionToProgram(GroundProgram* program, GroundInstruction instruction); GroundValue groundRunProgram(GroundProgram* program); @@ -126,5 +130,8 @@ GroundArg groundCreateReference(GroundArgType type, char* ref); GroundValue groundCreateValue(GroundValueType type, ...); +#ifdef __cplusplus +} +#endif #endif