Defining MIN / MAX
The usual way to define MIN and MAX is with brackets.
@@ -33,10 +33,10 @@ public:
const JAVACC_CHAR_TYPE EMPTY[] = { 0 };
\#ifndef MAX
-\#define MAX(a,b) (a>=b?a:b)
+\#define MAX(a,b) ((a)>=(b)?(a):(b))
\#endif
\#ifndef MIN
-\#define MIN(a,b) (a<=b?a:b)
+\#define MIN(a,b) ((a)<=(b)?(a):(b))
\#endif
\#ifndef null
\#define null 0
