Skip to content

Commit

Permalink
Add duplicate macros with namespace prefix
Browse files Browse the repository at this point in the history
Add duplicate macros to console.h with
`CONSOLE_BRIDGE_` prepended.
First step in fixing ros#18.
  • Loading branch information
scpeters committed Dec 14, 2015
1 parent 4800600 commit 7b4da66
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/console_bridge/console.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@
\}
*/
#define CONSOLE_BRIDGE_logError(fmt, ...) \
console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, fmt, ##__VA_ARGS__)

#define CONSOLE_BRIDGE_logWarn(fmt, ...) \
console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, fmt, ##__VA_ARGS__)

#define CONSOLE_BRIDGE_logInform(fmt, ...) \
console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_INFO, fmt, ##__VA_ARGS__)

#define CONSOLE_BRIDGE_logDebug(fmt, ...) \
console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_DEBUG, fmt, ##__VA_ARGS__)

#define logError(fmt, ...) console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, fmt, ##__VA_ARGS__)

#define logWarn(fmt, ...) console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, fmt, ##__VA_ARGS__)
Expand Down

0 comments on commit 7b4da66

Please sign in to comment.