aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/address.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-14 04:51:52 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-14 16:02:26 +0300
commited597441678604f6bf44513532ad282e4d5593be (patch)
tree2839da580b2faf96a6c634b275ae01b84eee4442 /include/pdb/address.hpp
parentdisable Boost autolinking feature (diff)
downloadwinapi-debug-ed597441678604f6bf44513532ad282e4d5593be.tar.gz
winapi-debug-ed597441678604f6bf44513532ad282e4d5593be.zip
unit_tests: more call stack tests
Diffstat (limited to 'include/pdb/address.hpp')
-rw-r--r--include/pdb/address.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pdb/address.hpp b/include/pdb/address.hpp
index fa692ad..f7a7239 100644
--- a/include/pdb/address.hpp
+++ b/include/pdb/address.hpp
@@ -20,6 +20,10 @@ inline std::string format_address(Address address) {
return oss.str();
}
+inline std::string format_address(void* address) {
+ return format_address(reinterpret_cast<Address>(address));
+}
+
inline bool parse_address(Address& dest, const std::string& src) {
std::istringstream iss{src};
iss >> std::hex;