Misc stuff, probably crashes
This commit is contained in:
33
src/Free/BytecodeValue.c
Normal file
33
src/Free/BytecodeValue.c
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user