#ifndef DEBUG_H #define DEBUG_H #ifndef NDEBUG #include #include #define debug(x) printf x #else #define assert(x) #define debug(x) (x) #endif /* NDEBUG */ #endif /* DEBUG_H */