Make title bold; Fix height when we have no menubar.
[bertos.git] / cfg / macros.h
index 41f0b9d3faf3071141e5fa6dd2ef46cac21a468f..ded2261bd9d64de06631508109a5e8bd293a30bc 100755 (executable)
@@ -2,7 +2,7 @@
  * \file
  * <!--
  * Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
- * This file is part of DevLib - See devlib/README for information.
+ * This file is part of DevLib - See README.devlib for information.
  * -->
  *
  * \brief Common and handy function macros
 
 /*#*
  *#* $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.4  2005/07/03 15:19:09  bernie
  *#* Doxygen fix.
  *#*
                } 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