mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
WIP bytecode and routine, read more
The tests are failing in a strange way, with the error message 'corrupted top size'. I don't know what it means, and it seems to be caused by a call to printf() within 'test_bytecode.c'. I need a break, as this is making me dizzy.
This commit is contained in:
13
source/toy_bytecode.h
Normal file
13
source/toy_bytecode.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "toy_common.h"
|
||||
#include "toy_ast.h"
|
||||
|
||||
typedef struct Toy_Bytecode {
|
||||
unsigned char* ptr;
|
||||
int capacity;
|
||||
int count;
|
||||
} Toy_Bytecode;
|
||||
|
||||
TOY_API Toy_Bytecode Toy_compileBytecode(Toy_Ast* ast);
|
||||
TOY_API void Toy_freeBytecode(Toy_Bytecode bc);
|
||||
Reference in New Issue
Block a user