mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
Prepended file names with "toy_"
This commit is contained in:
20
source/toy_literal_array.h
Normal file
20
source/toy_literal_array.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "toy_common.h"
|
||||
|
||||
#include "literal.h"
|
||||
|
||||
typedef struct LiteralArray {
|
||||
Literal* literals;
|
||||
int capacity;
|
||||
int count;
|
||||
} LiteralArray;
|
||||
|
||||
TOY_API void initLiteralArray(LiteralArray* array);
|
||||
TOY_API void freeLiteralArray(LiteralArray* array);
|
||||
TOY_API int pushLiteralArray(LiteralArray* array, Literal literal);
|
||||
TOY_API Literal popLiteralArray(LiteralArray* array);
|
||||
TOY_API bool setLiteralArray(LiteralArray* array, Literal index, Literal value);
|
||||
TOY_API Literal getLiteralArray(LiteralArray* array, Literal index);
|
||||
|
||||
int findLiteralIndex(LiteralArray* array, Literal literal);
|
||||
Reference in New Issue
Block a user