89 void error (const char* text, ...); |
89 void error (const char* text, ...); |
90 char* ObjectFileName (str s); |
90 char* ObjectFileName (str s); |
91 bool fexists (char* path); |
91 bool fexists (char* path); |
92 |
92 |
93 // Make the parser's variables globally available |
93 // Make the parser's variables globally available |
94 #ifndef __PARSER_CXX__ |
|
95 extern int g_NumStates; |
94 extern int g_NumStates; |
96 extern int g_NumEvents; |
95 extern int g_NumEvents; |
97 extern int g_CurMode; |
96 extern int g_CurMode; |
98 extern str g_CurState; |
97 extern str g_CurState; |
|
98 |
|
99 #define neurosphere if (g_Neurosphere) |
|
100 #define twice for (int repeat_token = 0; repeat_token < 2; repeat_token++) |
|
101 |
|
102 #ifndef __GNUC__ |
|
103 #define __attribute__(X) |
99 #endif |
104 #endif |
100 |
105 |
101 // Power function |
106 // Power function |
102 template<class T> T pow (T a, unsigned int b) { |
107 template<class T> T pow (T a, unsigned int b) { |
103 if (!b) |
108 if (!b) |