|
33 | 33 | #include <console_bridge/console.h>
|
34 | 34 |
|
35 | 35 | #ifndef CONSOLE_BRIDGE_logError
|
36 |
| -#define CONSOLE_BRIDGE_logError logError |
| 36 | +# define CONSOLE_BRIDGE_logError(fmt, ...) \ |
| 37 | + console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, fmt, ##__VA_ARGS__) |
37 | 38 | #endif
|
38 | 39 |
|
39 | 40 | #ifndef CONSOLE_BRIDGE_logWarn
|
40 |
| -#define CONSOLE_BRIDGE_logWarn logWarn |
| 41 | +# define CONSOLE_BRIDGE_logWarn(fmt, ...) \ |
| 42 | + console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, fmt, ##__VA_ARGS__) |
41 | 43 | #endif
|
42 | 44 |
|
43 |
| -#ifndef CONSOLE_BRIDGE_logDebug |
44 |
| -#define CONSOLE_BRIDGE_logDebug logDebug |
| 45 | +#ifndef CONSOLE_BRIDGE_logInform |
| 46 | +# define CONSOLE_BRIDGE_logInform(fmt, ...) \ |
| 47 | + console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_INFO, fmt, ##__VA_ARGS__) |
45 | 48 | #endif
|
46 | 49 |
|
47 |
| -#ifndef CONSOLE_BRIDGE_logInform |
48 |
| -#define CONSOLE_BRIDGE_logInform logInform |
| 50 | +#ifndef CONSOLE_BRIDGE_logDebug |
| 51 | +# define CONSOLE_BRIDGE_logDebug(fmt, ...) \ |
| 52 | + console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_DEBUG, fmt, ##__VA_ARGS__) |
49 | 53 | #endif
|
50 | 54 |
|
51 | 55 | #endif // CLASS_LOADER__CONSOLE_BRIDGE_COMPATIBILITY_H_
|
0 commit comments