11 lines
344 B
C++

#include "include/public/toon_boom/ext/util.hpp"
namespace util::debug {
std::string addrToHex(void* addr) {
return std::format("0x{:010X}", reinterpret_cast<uintptr_t>(addr));
}
std::string constAddrToHex(const void* addr) {
return std::format("0x{:010X}", reinterpret_cast<const uintptr_t>(addr));
}
} // namespace util::debug