Added XOR macro.

Sat, 19 Mar 2005 20:56:25 +0100

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sat, 19 Mar 2005 20:56:25 +0100
changeset 96
80b5394ff100
parent 95
6737fe676e48
child 97
daf2b3d79cb8

Added XOR macro.

misc.h file | annotate | diff | comparison | revisions
--- a/misc.h	Tue Mar 01 22:57:57 2005 +0100
+++ b/misc.h	Sat Mar 19 20:56:25 2005 +0100
@@ -21,6 +21,8 @@
 
 #define FREE(X) do{if(X!=NULL)free(X);}while(0)
 
+#define XOR(X, Y) (((X)==0) != ((Y)==0))
+
 extern void* malloczero(size_t size);
 extern void* remalloczero(void *ptr, size_t oldsize, size_t newsize);
 

mercurial