21 lines
408 B
C++
21 lines
408 B
C++
#pragma once
|
|
|
|
#include <format>
|
|
#include <iostream>
|
|
#include <streambuf>
|
|
|
|
#if !defined(TB_EXT_FRAMEWORK_DEBUG)
|
|
#define TB_EXT_FRAMEWORK_DEBUG 0
|
|
#endif
|
|
|
|
namespace util::debug {
|
|
struct NullBuffer : std::streambuf {
|
|
int overflow(int c) { return c; }
|
|
};
|
|
|
|
std::string addrToHex(void *addr);
|
|
|
|
std::string constAddrToHex(const void *addr);
|
|
|
|
extern std::ostream &out;
|
|
} // namespace util::debug
|