mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
Add _XfeGetValuesCastAndAssign() and _XfeSwap().
This commit is contained in:
parent
fda095a55a
commit
8b208caaf7
@ -190,6 +190,31 @@ if ((wc)->class_name.method == flag) \
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* GetValues() cast and assign macro. */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeGetValuesCastAndAssign(av,i,v) \
|
||||
{ \
|
||||
*((XtArgVal *) av[i] . value) = (XtArgVal) (v); \
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Swap two values of a arbitrary type macro. */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeSwap(_x,_y,_t) \
|
||||
{ \
|
||||
_t __tmp__ = _x; \
|
||||
\
|
||||
_x = _y; \
|
||||
_y = __tmp__; \
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* _XfeIsAlive() macro. */
|
||||
|
Loading…
Reference in New Issue
Block a user