From 68182d916ea91fde02a0ac1b522677c4df1496dd Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Thu, 22 Jan 2026 20:58:49 +1100 Subject: [PATCH] Satisfy Leo's thirst for structs and extlibs --- include/groundvm.h | 4 ++-- src/types.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/groundvm.h b/include/groundvm.h index 61f6e6d..13c8fc1 100644 --- a/include/groundvm.h +++ b/include/groundvm.h @@ -31,6 +31,7 @@ typedef enum ListAccessStatus { struct GroundValue; struct GroundFunction; +struct GroundStruct; struct List; @@ -58,8 +59,7 @@ typedef struct GroundError { */ typedef struct GroundValue { GroundValueType type; - // This line seems to be causing issues with extlibs - // struct GroundStruct* customType; + struct GroundStruct* customType; union { int64_t intVal; double doubleVal; diff --git a/src/types.h b/src/types.h index 600322c..1639cd2 100644 --- a/src/types.h +++ b/src/types.h @@ -62,7 +62,6 @@ typedef struct GroundError { */ typedef struct GroundValue { GroundValueType type; - struct GroundStruct* customType; union { int64_t intVal; double doubleVal; @@ -75,6 +74,7 @@ typedef struct GroundValue { struct GroundStruct* structVal; struct GroundObject* customVal; } data; + struct GroundStruct* customType; } GroundValue; /*