// // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // libdebug.h -- // // Author : Thierry Delisle // Created On : Mon Nov 28 12:27:26 2016 // Last Modified By : Thierry Delisle // Last Modified On : Mon Nov 28 12:27:26 2016 // Update Count : 0 // #ifndef __LIB_DEBUG_H__ #define __LIB_DEBUG_H__ #ifdef __CFA_DEBUG__ #define LIB_DEBUG_DO(x) x #define LIB_NO_DEBUG_DO(x) ((void)0) #else #define LIB_DEBUG_DO(x) ((void)0) #define LIB_NO_DEBUG_DO(x) x #endif #ifdef __CFA_DEBUG_PRINT__ #define LIB_DEBUG_PRINTF(...) printf (__VA_ARGS__) #define LIB_DEBUG_FPRINTF(...) fprintf (stderr, __VA_ARGS__) #else #define LIB_DEBUG_PRINTF(...) ((void)0) #define LIB_DEBUG_FPRINTF(...) ((void)0) #endif #endif //__LIB_DEBUG_H__ // Local Variables: // // mode: c // // tab-width: 4 // // End: //