Print a tagged debug message on the standard error stream.
- Parameters
-
[in] | tag | the message tag |
[in] | fmt | a printf-style format string |
[in] | args | a variable argument list (as a va_list variable) |
- Note
- Deprecated if debugging is disabled
Definition at line 641 of file util.cpp.
References __D_ASSERT, header(), likely, lock(), unlikely, unlock(), and va_format().
Referenced by dbg_error(), dbg_info(), and dbg_warn().
643 #ifdef CSDBG_WITH_DEBUG
646 if (
unlikely(tag == NULL || fmt == NULL) ) {
656 if (
likely(!isspace(fmt[0])) )
659 std::cerr << msg <<
"\r\n";
char i8
8-bit signed integer
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
static void lock()
Lock the global access mutex.
static void unlock()
Unlock the global access mutex.
static i8 * va_format(const i8 *, va_list)
Format a buffer with a printf-style string expanded with the values of a variable argument list...
static void header(std::ostream &, const i8 *)
Print a tagged message header on an output stream.
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
#define __D_ASSERT(x)
Assertion macro.