Moved the demo scripts into a directory

This commit is contained in:
2023-03-03 23:57:02 +11:00
parent 08ce7b5536
commit b89f73ac9e
11 changed files with 33 additions and 85 deletions

View File

@@ -101,7 +101,7 @@ void Box_freeEngine() {
engine.window = NULL;
}
static void execLoadRootNode() {
static inline void execLoadRootNode() {
//if a new root node is NOT needed, skip out
if (TOY_IS_NULL(engine.nextRootNodeFilename)) {
return;
@@ -159,7 +159,7 @@ static void execLoadRootNode() {
Box_callRecursiveEngineNode(engine.rootNode, &engine.interpreter, "onInit", NULL);
}
static void execEvents() {
static inline void execEvents() {
Toy_LiteralArray args; //save some allocation by reusing this
Toy_initLiteralArray(&args);
@@ -394,7 +394,7 @@ static void execEvents() {
Toy_freeLiteralArray(&args);
}
static void execStep() {
static inline void execStep() {
if (engine.rootNode != NULL) {
//steps
Box_callRecursiveEngineNode(engine.rootNode, &engine.interpreter, "onStep", NULL);