Last change
on this file since 888 was 705, checked in by alloc, 12 years ago |
Daodan: DaodanGL fixes, intro/outro fixes, chinese=true by default
|
File size:
503 bytes
|
Line | |
---|
1 | #ifndef BFW_SCRIPTLANG_H
|
---|
2 | #define BFW_SCRIPTLANG_H
|
---|
3 |
|
---|
4 | #include "stdint.h"
|
---|
5 |
|
---|
6 | typedef 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 |
|
---|
14 | typedef struct {
|
---|
15 | sl_type type;
|
---|
16 | union {
|
---|
17 | void* value;
|
---|
18 | int32_t value_int32;
|
---|
19 | char* value_str32;
|
---|
20 | float value_float;
|
---|
21 | char value_bool;
|
---|
22 | } val;
|
---|
23 | } sl_arg;
|
---|
24 |
|
---|
25 | typedef 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.