26 #ifndef XLKIT_XLDEBUG_HPP 
   27 #define XLKIT_XLDEBUG_HPP 
   39 void outputDebugString(
const char *msg);
 
   42 debugMsgV(
const char* file, 
int n, 
const char* func, 
const char *fmt, va_list args) {
 
   43     const char* base = strrchr(file, 
'\\');
 
   45         base = strrchr(file, 
'/');
 
   48     std::string msg = strprintf(
"%s(%d) [%s]: ", file, n, func);
 
   49     msg.append(strprintfV(fmt, args));
 
   54 debugMsg(
const char* file, 
int n, 
const char* func, 
const char *fmt, ...) {
 
   57     std::string msg = debugMsgV(file, n, func, fmt, args);
 
   62 debugMsgS(
const char* file, 
int n, 
const char* func, 
const std::string& msg) {
 
   63     return debugMsg(file, n, func, 
"%s", msg.c_str());
 
   66 debugOut(
const char* file, 
int n, 
const char* func, 
const char *fmt, ...) {
 
   69     std::string msg = debugMsgV(file, n, func, fmt, args);
 
   71     detail::outputDebugString(msg.c_str());
 
   81 #define XLDBG(FORMAT, ...) \ 
   82                 xlkit::detail::debugOut(__FILE__, __LINE__, __FUNCTION__, FORMAT, __VA_ARGS__) \ 
   85 #define XLDBG(FORMAT, ...) 
   91 #endif // XLKIT_XLDEBUG_HPP 
#define XLKIT_VERSION_NAME
Version namespace for this library. 
Definition: xlversion.hpp:33
 
#define XLKIT_USE_VERSION_NAMESPACE
Macro used to pull the versioned namespace into the main xlkit namepsace. 
Definition: xlversion.hpp:52