forked from logzhan/RobotHardware-UESTC
15 lines
365 B
C
15 lines
365 B
C
#ifndef PIBOT_PRINT_H_
|
|
#define PIBOT_PRINT_H_
|
|
|
|
#include <stdio.h>
|
|
|
|
#if DEBUG_ENABLE
|
|
#define log(format,...) printf("" __FILE__ ":%d - " format "\r\n", __LINE__, ##__VA_ARGS__)
|
|
#define logi(format,...) printf("[INFO]" __FILE__ ":%d - " format "\r\n", __LINE__, ##__VA_ARGS__)
|
|
#else
|
|
#define log(format,...)
|
|
#define logi(format,...)
|
|
#endif
|
|
|
|
#endif
|