source: Daodan/src/BFW_ScriptLang.h@ 703

Last change on this file since 703 was 692, checked in by alloc, 12 years ago

Daodan: Lots of cleanups (mostly unnecessary includes removed, empty files deleted, case of filenames corrected)

File size: 503 bytes
Line 
1#ifndef BFW_SCRIPTLANG_H
2#define BFW_SCRIPTLANG_H
3
4#include "stdint.h"
5
6typedef enum {
7 sl_int32,
8 sl_str32,
9 sl_float,
10 sl_bool, /* Actually int32 0 or 1. */
11 sl_void,
12} sl_type;
13
14typedef struct {
15 sl_type type;
16 union {
17 void* value;
18 int32_t value_int32;
19 char* value_str32;
20 float value_float;
21 bool value_bool;
22 } val;
23} sl_arg;
24
25typedef struct {
26 char* name;
27 char* calllocation; //maybe
28 int linenumber; //perhaps
29} sl_callinfo;
30
31#endif
Note: See TracBrowser for help on using the repository browser.