From 6d61e2a46722b75c1a3734e3419ee2886b11b2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 30 Oct 2007 09:21:36 +0000 Subject: added a macro for type-checking svn path=/trunk/externals/zexy/; revision=8906 --- src/zexy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/zexy.h b/src/zexy.h index 357b412..27f5d7e 100644 --- a/src/zexy.h +++ b/src/zexy.h @@ -55,7 +55,6 @@ # define Z_SIMD_BYTEALIGN (128/8) /* assume 128 bits */ # define Z_SIMD_CHKBLOCKSIZE(n) (!(n&(Z_SIMD_BLOCK-1))) # define Z_SIMD_CHKALIGN(ptr) ( ((unsigned long)(ptr) & (Z_SIMD_BYTEALIGN-1)) == 0 ) - #endif /* __SSE__ */ #include @@ -88,6 +87,8 @@ #define ZEXY_USEVAR(x) x=x +#define ZEXY_TYPE_EQUAL(type1, type2) (sizeof(type1) == sizeof(type2)) + typedef struct _mypdlist { t_object x_obj; -- cgit v1.2.1