#ifndef SCRIPT_H #define SCRIPT_H #include #include "Object.h" #define SCRIPT_STACK_SIZE 50 typedef struct Script { const char* error; unsigned char* byteCode; int byteCodeLength; int readIndex; Object stack[SCRIPT_STACK_SIZE]; int stackIndex; } Script; Script* sInit(unsigned char* byteCode, int codeLength); void sDelete(Script* sc); void sRun(Script* sc); typedef bool (*ObjectPrinter)(Object*); void sSetPrinter(ObjectPrinter p); #endif