some cool things
This commit is contained in:
@@ -107,6 +107,14 @@ void _GroundBytecodeHeapSet(GroundBytecodeHeap* heap, GroundSize idx, GroundValu
|
||||
GroundValue* _GroundBytecodeHeapGet(GroundBytecodeHeap* heap, GroundSize idx);
|
||||
|
||||
|
||||
char* _GroundStringifyArg(GroundArg* arg);
|
||||
char* _GroundStringifyHeap(GroundBytecodeHeap* heap);
|
||||
char* _GroundStringifyInstruction(GroundInstruction* instruction);
|
||||
char* _GroundStringifyProgram(GroundProgram* program);
|
||||
char* _GroundStringifyString(GroundString* string);
|
||||
char* _GroundStringifyValue(GroundValue* value);
|
||||
|
||||
|
||||
struct _Ground Ground = {
|
||||
|
||||
.Flags = {
|
||||
@@ -240,4 +248,13 @@ struct _Ground Ground = {
|
||||
.get = _GroundBytecodeHeapGet,
|
||||
},
|
||||
},
|
||||
|
||||
.Stringify = {
|
||||
.Arg = _GroundStringifyArg,
|
||||
.Heap = _GroundStringifyHeap,
|
||||
.Instruction = _GroundStringifyInstruction,
|
||||
.Program = _GroundStringifyProgram,
|
||||
.String = _GroundStringifyString,
|
||||
.Value = _GroundStringifyValue,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user