diff options
| author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-24 01:34:52 +0300 |
|---|---|---|
| committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-24 02:06:22 +0300 |
| commit | c073ed8f702e98ec56ed05e0c02167e355e6ee31 (patch) | |
| tree | f726a5830ed4f47724ac6c447571398ef5b12ea2 /test/call_stack.cpp | |
| parent | add Process class (diff) | |
| download | winapi-debug-c073ed8f702e98ec56ed05e0c02167e355e6ee31.tar.gz winapi-debug-c073ed8f702e98ec56ed05e0c02167e355e6ee31.zip | |
switch to Boost.Nowide everywhere
Diffstat (limited to 'test/call_stack.cpp')
| -rw-r--r-- | test/call_stack.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/call_stack.cpp b/test/call_stack.cpp index 1f6ce37..8eb3198 100644 --- a/test/call_stack.cpp +++ b/test/call_stack.cpp @@ -1,28 +1,29 @@ #include "pdb/all.hpp" +#include <boost/nowide/iostream.hpp> + #include <exception> -#include <iostream> namespace test { void call_stack() { const auto dbghelp = pdb::DbgHelp::current_process(); const auto call_stack = pdb::CallStack::capture(); - call_stack.dump(std::cout, dbghelp); + call_stack.dump(boost::nowide::cout, dbghelp); } void __declspec(noinline) baz() { - std::cout << "baz\n"; + boost::nowide::cout << "baz\n"; call_stack(); } void __declspec(noinline) bar() { - std::cout << "bar\n"; + boost::nowide::cout << "bar\n"; baz(); } void __declspec(noinline) foo() { - std::cout << "foo\n"; + boost::nowide::cout << "foo\n"; bar(); } @@ -32,7 +33,7 @@ int main() { try { test::foo(); } catch (const std::exception& e) { - std::cerr << e.what() << '\n'; + boost::nowide::cerr << e.what() << '\n'; return 1; } return 0; |
