projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing UART definitions.
[bertos.git]
/
cfg
/
macros.h
diff --git
a/cfg/macros.h
b/cfg/macros.h
index 5d363173d6327a2c570053338cda9ea980ffd28e..ded2261bd9d64de06631508109a5e8bd293a30bc 100755
(executable)
--- a/
cfg/macros.h
+++ b/
cfg/macros.h
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2006/02/10 12:36:57 bernie
+ *#* Pacify IAR warnings for side-effects.
+ *#*
*#* Revision 1.5 2005/11/04 16:20:01 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.5 2005/11/04 16:20:01 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-137,7
+140,13
@@
} while (0)
#else /* !COMPILER_TYPEOF */
/* Sub-optimal implementation that only works with integral types. */
} while (0)
#else /* !COMPILER_TYPEOF */
/* Sub-optimal implementation that only works with integral types. */
- #define SWAP(a, b) ((a) ^= (b) ^= (a) ^= (b))
+ #define SWAP(a, b) \
+ do { \
+ (a) ^= (b); \
+ (b) ^= (a); \
+ (a) ^= (b); \
+ } while (0)
+
#endif /* COMPILER_TYPEOF */
#ifndef BV
#endif /* COMPILER_TYPEOF */
#ifndef BV