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

This commit is contained in:
charras 2008-10-30 11:41:06 +00:00
parent 78bbe94923
commit 443c644978
1 changed files with 8 additions and 0 deletions

View File

@ -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: */
/*****************************************************/