Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef __DEBUG_H__
#define __DEBUG_H__
#ifdef DEBUG_BUILD
void debug(const char *fmt, ...);
void debugPrint(const char *fmt, ...);
#define debug(...) do { debugPrint("[%s][%d][%s] ", __FILE__, __LINE__, __FUNCTION__); debugPrint(__VA_ARGS__); debugPrint("\r\n"); } while (0)
#define debug_log(...) do { debugPrint("[%s][%d][%s] ", __FILE__, __LINE__, __FUNCTION__); debugPrint(__VA_ARGS__); debugPrint("\r\n"); } while (0)
#else
#define debug(...)
#define debug_log(...)
#endif
#endif4e1c73188This file is pinned to the selected release. Download the original to open it in your design tool.