Commit 443c6449 authored by charras's avatar charras

return to EXCHG macro (some equivalent inline functions do not work )

parent 78bbe949
......@@ -53,6 +53,11 @@
/****************************************/
/* inline functions to exchange 2 items */
/****************************************/
#if 1
#define EXCHG( a, b ) { typeof(a) __temp__ = (a); (a) = (b); (b) = __temp__; }
#else
static inline void EXCHG( int a, int b )
{
int temp = a;
......@@ -126,6 +131,9 @@ static inline void EXCHG( const D_PAD* a, const D_PAD* b )
a = b;
b = temp;
};
#endif
/*****************************************************/
/* inline functions to insert menuitems with a icon: */
/*****************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment