function calling works in theory (can't test yet)

This commit is contained in:
2026-07-03 15:14:41 +10:00
parent a06d3ba55d
commit ce483dacc2
6 changed files with 169 additions and 71 deletions

22
src/Copy/BytecodeValue.c Normal file
View File

@@ -0,0 +1,22 @@
#include "../../include/ground.h"
GroundBytecodeValue _GroundCopyBytecodeValue(GroundBytecodeValue* value) {
GroundBytecodeValue newValue = *value;
switch (value->type.type) {
case GroundType_Int:
case GroundType_Double:
case GroundType_Bool:
case GroundType_Char:
break;
case GroundType_String: {
newValue.as.String = Ground.Copy.String(&value->as.String);
break;
}
// TODO: Implement copying for everything else
default: break;
}
return newValue;
}