Skip to content

Commit

Permalink
Add namespace prefix to macros
Browse files Browse the repository at this point in the history
Prepend CONSOLE_BRIDGE_ to macros in console.h
Fixes ros#18.
  • Loading branch information
scpeters committed Dec 9, 2015
1 parent b1641ad commit 0bead6e
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 0bead6e

Please sign in to comment.