mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Wrote value, chunk, memory sections, tested value
chunk and memory remain untested for now
This commit is contained in:
13
source/toy_chunk.h
Normal file
13
source/toy_chunk.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "toy_common.h"
|
||||
|
||||
typedef struct Toy_Chunk {
|
||||
int count;
|
||||
int capacity;
|
||||
uint8_t* code;
|
||||
} Toy_Chunk;
|
||||
|
||||
TOY_API void Toy_initChunk(Toy_Chunk* chunk);
|
||||
TOY_API void Toy_pushChunk(Toy_Chunk* chunk, uint8_t byte);
|
||||
TOY_API void Toy_freeChunk(Toy_Chunk* chunk);
|
||||
Reference in New Issue
Block a user