diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-29 01:11:44 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-29 01:11:44 +0300 |
commit | e2961032fd1896899f688cdcdf41f23ed71e3e82 (patch) | |
tree | 0ce11fa3137f027866e91bdc7cc71ff36fe3f6f8 /test/test_lib.cpp | |
parent | include/pdb/ -> include/winapi/debug/ (diff) | |
download | winapi-debug-e2961032fd1896899f688cdcdf41f23ed71e3e82.tar.gz winapi-debug-e2961032fd1896899f688cdcdf41f23ed71e3e82.zip |
namespace pdb -> namespace winapi
Diffstat (limited to 'test/test_lib.cpp')
-rw-r--r-- | test/test_lib.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_lib.cpp b/test/test_lib.cpp index e361ea4..bdb7bbf 100644 --- a/test/test_lib.cpp +++ b/test/test_lib.cpp @@ -18,13 +18,13 @@ namespace test_ns { namespace { void do_print_call_stack() { - const auto dbghelp = pdb::DbgHelp::current_process(); - const auto call_stack = pdb::CallStack::capture(); + const auto dbghelp = winapi::DbgHelp::current_process(); + const auto call_stack = winapi::CallStack::capture(); call_stack.dump(std::cout, dbghelp); } void do_throw_call_stack() { - throw pdb::CallStack::capture(); + throw winapi::CallStack::capture(); } } // namespace @@ -32,17 +32,17 @@ void do_throw_call_stack() { volatile int var = 42; void baz(F f) { - std::cout << "baz " << pdb::format_address(reinterpret_cast<void*>(&baz)) << '\n'; + std::cout << "baz " << winapi::format_address(reinterpret_cast<void*>(&baz)) << '\n'; f(); } void bar(F f) { - std::cout << "bar " << pdb::format_address(reinterpret_cast<void*>(&bar)) << '\n'; + std::cout << "bar " << winapi::format_address(reinterpret_cast<void*>(&bar)) << '\n'; baz(f); } void foo(F f) { - std::cout << "foo " << pdb::format_address(reinterpret_cast<void*>(&foo)) << '\n'; + std::cout << "foo " << winapi::format_address(reinterpret_cast<void*>(&foo)) << '\n'; bar(f); } |