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; /*