#pragma once #ifndef BFW_SCRIPTLANG_H #define BFW_SCRIPTLANG_H #include "Daodan.h" //#include #include "bool.h" typedef enum { sl_int32, sl_str32, sl_float, sl_bool, /* Actually int32 0 or 1. */ sl_void, } sl_type; typedef struct { sl_type type; union { void* value; int32_t value_int32; char* value_str32; float value_float; bool value_bool; }; } sl_arg; typedef struct { char* name; char* calllocation; //maybe int linenumber; //perhaps } sl_callinfo; #endif