From 4f24eceea4ed57483f18f73def2d1701e89b4033 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 13 Sep 2020 12:56:05 +0300 Subject: call_stack: try to fix __declspec(noinline) --- test/call_stack.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/call_stack.cpp b/test/call_stack.cpp index 8eb3198..a96b6a8 100644 --- a/test/call_stack.cpp +++ b/test/call_stack.cpp @@ -1,5 +1,6 @@ #include "pdb/all.hpp" +#include #include #include @@ -12,17 +13,17 @@ void call_stack() { call_stack.dump(boost::nowide::cout, dbghelp); } -void __declspec(noinline) baz() { +BOOST_NOINLINE void baz() { boost::nowide::cout << "baz\n"; call_stack(); } -void __declspec(noinline) bar() { +BOOST_NOINLINE void bar() { boost::nowide::cout << "bar\n"; baz(); } -void __declspec(noinline) foo() { +BOOST_NOINLINE void foo() { boost::nowide::cout << "foo\n"; bar(); } -- cgit v1.2.3