34 lines
779 B
C
34 lines
779 B
C
|
|
#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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|