common.h

changeset 66
4fc1ec88aa41
parent 63
0557babc8675
child 67
0a202714eea4
--- a/common.h	Sun Aug 26 23:54:58 2012 +0300
+++ b/common.h	Wed Dec 19 03:27:15 2012 +0200
@@ -91,11 +91,16 @@
 bool fexists (char* path);
 
 // Make the parser's variables globally available
-#ifndef __PARSER_CXX__
 extern int g_NumStates;
 extern int g_NumEvents;
 extern int g_CurMode;
 extern str g_CurState;
+
+#define neurosphere if (g_Neurosphere)
+#define twice for (int repeat_token = 0; repeat_token < 2; repeat_token++)
+
+#ifndef __GNUC__
+#define __attribute__(X)
 #endif
 
 // Power function

mercurial