VCCC  2024.05
VisualCamp Common C++ library
buffer.h File Reference
#include "boost/predef.h"
#include <cstdio>

Go to the source code of this file.

Macros

#define VCCC_LOG_EXPAND(x)   x
 
#define VCCC_LOG_PRINTER(buf, tag, fmt, ...)   VCCC_LOG_EXPAND(std::fprintf(buf, "%s" fmt "\n", tag, __VA_ARGS__))
 
#define VCCC_LOG_BUFFER_DEBUG   stdout
 
#define VCCC_LOG_BUFFER_INFO   stdout
 
#define VCCC_LOG_BUFFER_WARN   stderr
 
#define VCCC_LOG_BUFFER_ERROR   stderr
 

Macro Definition Documentation

◆ VCCC_LOG_BUFFER_DEBUG

#define VCCC_LOG_BUFFER_DEBUG   stdout

◆ VCCC_LOG_BUFFER_ERROR

#define VCCC_LOG_BUFFER_ERROR   stderr

◆ VCCC_LOG_BUFFER_INFO

#define VCCC_LOG_BUFFER_INFO   stdout

◆ VCCC_LOG_BUFFER_WARN

#define VCCC_LOG_BUFFER_WARN   stderr

◆ VCCC_LOG_EXPAND

#define VCCC_LOG_EXPAND (   x)    x

◆ VCCC_LOG_PRINTER

#define VCCC_LOG_PRINTER (   buf,
  tag,
  fmt,
  ... 
)    VCCC_LOG_EXPAND(std::fprintf(buf, "%s" fmt "\n", tag, __VA_ARGS__))