Merged with Edouard's modifications
authorlaurent
Sun, 27 Mar 2011 16:19:36 +0200
changeset 253 18988de676ac
parent 252 0bda13ec66b3 (diff)
parent 251 5e7457efbb8f (current diff)
child 254 28bd86c56793
child 258 d7d92b2f87e9
Merged with Edouard's modifications
--- a/lib/accessor.h	Sat Mar 26 18:53:51 2011 +0100
+++ b/lib/accessor.h	Sun Mar 27 16:19:36 2011 +0200
@@ -66,15 +66,15 @@
 #define __GET_VAR(name, ...)\
 	name.value __VA_ARGS__
 #define __GET_EXTERNAL(name, ...)\
-	(name.flags & __IEC_FORCE_FLAG) ? name.fvalue __VA_ARGS__ : *(name.value) __VA_ARGS__
+	((name.flags & __IEC_FORCE_FLAG) ? name.fvalue __VA_ARGS__ : *(name.value) __VA_ARGS__)
 #define __GET_LOCATED(name, ...)\
-	(name.flags & __IEC_FORCE_FLAG) ? name.fvalue __VA_ARGS__ : *(name.value) __VA_ARGS__
+	((name.flags & __IEC_FORCE_FLAG) ? name.fvalue __VA_ARGS__ : *(name.value) __VA_ARGS__)
 #define __GET_VAR_BY_REF(name, ...)\
-	(name.flags & __IEC_FORCE_FLAG) ? &(name.fvalue __VA_ARGS__) : &(name.value __VA_ARGS__)
+	((name.flags & __IEC_FORCE_FLAG) ? &(name.fvalue __VA_ARGS__) : &(name.value __VA_ARGS__))
 #define __GET_EXTERNAL_BY_REF(name, ...)\
-	(name.flags & __IEC_FORCE_FLAG) ? &(name.fvalue __VA_ARGS__) : &(*(name.value) __VA_ARGS__)
+	((name.flags & __IEC_FORCE_FLAG) ? &(name.fvalue __VA_ARGS__) : &(*(name.value) __VA_ARGS__))
 #define __GET_LOCATED_BY_REF(name, ...)\
-	(name.flags & __IEC_FORCE_FLAG) ? &(name.fvalue __VA_ARGS__) : &(*(name.value) __VA_ARGS__)
+	((name.flags & __IEC_FORCE_FLAG) ? &(name.fvalue __VA_ARGS__) : &(*(name.value) __VA_ARGS__))
 
 // variable setting macros
 #define __SET_VAR(name, new_value, ...)\