mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Basically, all Toy varaibles, functions, etc. are prepended with "Toy_", and macros are prepended with "TOY_". This is to reduce namespace pollution, which was an issue pointed out to be - blame @GyroVorbis. I've also bumped the minor version number - theoretically I should bump the major number, but I'm not quite ready for 1.0 yet.
15 lines
662 B
C
15 lines
662 B
C
#pragma once
|
|
|
|
#include "toy_interpreter.h"
|
|
|
|
//the _index function is a historical oddity - it's used whenever a compound is indexed
|
|
int _index(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments);
|
|
|
|
//globally available native functions
|
|
int _set(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments);
|
|
int _get(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments);
|
|
int _push(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments);
|
|
int _pop(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments);
|
|
int _length(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments);
|
|
int _clear(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments);
|