2
0
Эх сурвалжийг харах

bison 1.875c now requires parens within the macro args

David Rose 21 жил өмнө
parent
commit
c4fb3aa93a

+ 3 - 3
dtool/src/cppparser/cppBisonDefs.h

@@ -120,8 +120,8 @@ struct cppyyltype {
 // last_column, whereas here we use the struct assignment operator to
 // copy all the members of the structure).
 #define YYLLOC_DEFAULT(Current, Rhs, N)          \
-  Current = Rhs[1];                              \
-  Current.last_line    = Rhs[N].last_line;       \
-  Current.last_column  = Rhs[N].last_column;
+  (Current) = (Rhs)[1];                              \
+  (Current).last_line    = (Rhs)[N].last_line;       \
+  (Current).last_column  = (Rhs)[N].last_column;
 
 #endif