Began writing Toy_VM, read more

Toy_VM and Toy_Stack are both considered WIP, and neither has any tests
yet.
This commit is contained in:
2024-09-26 17:17:18 +10:00
parent 7d92101c1f
commit 0504f4af8b
6 changed files with 437 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ typedef struct Toy_Value {
} as; //4
Toy_ValueType type; //4
} Toy_Value;
} Toy_Value; //8
#define TOY_VALUE_IS_NULL(value) ((value).type == TOY_VALUE_NULL)
#define TOY_VALUE_IS_BOOLEAN(value) ((value).type == TOY_VALUE_BOOLEAN)