CuPBoP/common/debug.hpp

15 lines
234 B
C++
Raw Normal View History

2022-09-16 06:19:13 +08:00
// This file is used for defining debug tools
#ifndef __DEBUG_TOOL__
#define __DEBUG_TOOL__
#include <stdio.h>
#ifdef DEBUG
#define DEBUG_INFO(...) fprintf(stderr, __VA_ARGS__)
#else
#define DEBUG_INFO(...)
#endif // DEBUG
#endif