mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
Added assert keyword, with re-routable print and assert outputs
This commit is contained in:
@@ -29,6 +29,8 @@ void writeCompiler(Compiler* compiler, Node* node) {
|
||||
|
||||
//determine node type
|
||||
switch(node->type) {
|
||||
//TODO: more types, like variables, etc.
|
||||
|
||||
case NODE_LITERAL: {
|
||||
//ensure the literal is in the cache
|
||||
int index = findLiteralIndex(&compiler->literalCache, node->atomic.literal);
|
||||
|
||||
Reference in New Issue
Block a user