Files
ground-rewrite/src/Free/BytecodeValue.c

34 lines
779 B
C
Raw Normal View History

2026-07-02 11:35:56 +10:00
#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;
}
}
}