--- libaitio/inc/aitio.h 2011/12/13 10:40:05 1.13.2.3 +++ libaitio/inc/aitio.h 2011/12/14 15:00:24 1.13.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.13.2.3 2011/12/13 10:40:05 misho Exp $ +* $Id: aitio.h,v 1.13.2.5 2011/12/14 15:00:24 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -343,7 +343,7 @@ inline ait_val_t *io_allocVar(void); * @val = Variable * return: none */ -inline void io_freeVar(ait_val_t ** __restrict val); +inline void io_freeVar(ait_val_t * __restrict val); /* * io_allocVars() Allocate ait_val_t array * @varnum = Number of variables @@ -790,11 +790,13 @@ inline int io_rwrite(int fd, void * __restrict buf, si /* Debug helper macros */ extern int io_Debug; +#define io_enableDEBUG int io_Debug #define io_initDebug(x) (io_Debug = (x)) #define io_incDebug (io_Debug++) #define io_decDebug (io_Debug--) /* Debug macros */ +#define ioVERBOSE(x) if ((x) <= io_Debug) #define ioTRACE(x) if ((x) <= io_Debug) \ syslog(LOG_DEBUG, "I'm in %s(%d)", __func__, __LINE__) #define ioDEBUG(x, fmt, ...) do { \