Skip to content

Commit ab5fa91

Browse files
committed
NDEBUG for NO_LOG
1 parent 4ac0134 commit ab5fa91

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

utils/logging.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ namespace gpu
3838
return oss.str();
3939
}
4040

41+
/**
42+
* @brief Log a message to the logger. If NO_LOG is defined in a source or as a
43+
* compiler flag, this is a no-op.
44+
*
45+
* @param logger The logger to log to.
46+
* @param level The log level of the message.
47+
* @param message The message to log.
48+
*/
4149
#ifndef NO_LOG
42-
/**
43-
* @brief Log a message to the logger. If NDEBUG is defined in a source or as a
44-
* compiler flag, this is a no-op.
45-
*
46-
* @param logger The logger to log to.
47-
* @param level The log level of the message.
48-
* @param message The message to log.
49-
*/
5050
template <typename... Args>
5151
inline void LOG(Logger &logger, int level, const char *message, ...)
5252
{

0 commit comments

Comments
 (0)