Misc stuff, probably crashes

This commit is contained in:
2026-07-02 11:35:56 +10:00
parent 9bb083a6f8
commit c78426ef88
16 changed files with 474 additions and 134 deletions

33
src/Free/BytecodeValue.c Normal file
View File

@@ -0,0 +1,33 @@
#include "../../include/ground.h"
void _GroundFreeBytecodeValue(GroundBytecodeValue* in) {
// TODO: Implement all this
switch (in->type.type) {
case GroundType_String: {
Ground.Free.String(&in->as.String);
break;
}
case GroundType_List: {
// Ground.Free.List(&in->as.List);
break;
}
case GroundType_Function: {
// Ground.Free.Function(&in->as.Function);
break;
}
case GroundType_Struct: {
// Ground.Free.Struct(&in->as.Struct);
break;
}
case GroundType_Object: {
// Ground.Free.Object(&in->as.Object);
break;
}
default: {
break;
}
}
}