2024-01-20 13:19:09 +08:00
|
|
|
#ifndef PIBOT_PRINT_H_
|
|
|
|
#define PIBOT_PRINT_H_
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#if DEBUG_ENABLE
|
2024-01-23 15:06:39 +08:00
|
|
|
#define log(format,...) printf("" __FILE__ ":%d - " format "\r\n", __LINE__, ##__VA_ARGS__)
|
2024-01-24 22:08:32 +08:00
|
|
|
#define logi(format,...) printf("[INFO]" __FILE__ ":%d - " format "\r\n", __LINE__, ##__VA_ARGS__)
|
2024-01-20 13:19:09 +08:00
|
|
|
#else
|
2024-01-23 15:06:39 +08:00
|
|
|
#define log(format,...)
|
2024-01-24 22:08:32 +08:00
|
|
|
#define logi(format,...)
|
2024-01-20 13:19:09 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|