diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-13 13:05:16 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-13 13:05:16 +0300 |
commit | 0b1a312de28759b86e2141b09874ab1a80b043ee (patch) | |
tree | 750cb953b3e8bdc288a3edf8de30e0259ca191c3 /test | |
parent | call_stack: try to fix __declspec(noinline) (diff) | |
download | winapi-debug-0b1a312de28759b86e2141b09874ab1a80b043ee.tar.gz winapi-debug-0b1a312de28759b86e2141b09874ab1a80b043ee.zip |
call_stack: try to fix __declspec(noinline) #2
Diffstat (limited to 'test')
-rw-r--r-- | test/call_stack.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/call_stack.cpp b/test/call_stack.cpp index a96b6a8..082ff3a 100644 --- a/test/call_stack.cpp +++ b/test/call_stack.cpp @@ -13,18 +13,19 @@ void call_stack() { call_stack.dump(boost::nowide::cout, dbghelp); } +// Some tricks to prevent the functions from being inlined follow... BOOST_NOINLINE void baz() { - boost::nowide::cout << "baz\n"; + boost::nowide::cout << "baz " << &baz << '\n'; call_stack(); } BOOST_NOINLINE void bar() { - boost::nowide::cout << "bar\n"; + boost::nowide::cout << "bar " << &bar << '\n'; baz(); } BOOST_NOINLINE void foo() { - boost::nowide::cout << "foo\n"; + boost::nowide::cout << "foo " << &foo << '\n'; bar(); } |