aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/test_lib.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-13 13:47:30 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-14 00:18:49 +0300
commit418e850b2b1f76b204af87a5d930f5129055e09a (patch)
tree470f40f91b500ca1de712689d171433d9dd4d0d5 /test/test_lib.hpp
parentcall_stack: try to fix __declspec(noinline) #3 (diff)
downloadwinapi-debug-418e850b2b1f76b204af87a5d930f5129055e09a.tar.gz
winapi-debug-418e850b2b1f76b204af87a5d930f5129055e09a.zip
call_stack: can't noinline w/ MSVC, let's try a DLL
Diffstat (limited to '')
-rw-r--r--test/test_lib.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_lib.hpp b/test/test_lib.hpp
new file mode 100644
index 0000000..f5fa017
--- /dev/null
+++ b/test/test_lib.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+// This is dumb library which exports a bunch of symbols.
+
+#include "test_lib_api.hpp"
+
+namespace test {
+
+typedef void (*F)();
+
+TEST_LIB_API extern volatile int var;
+
+TEST_LIB_API void foo(F);
+TEST_LIB_API void bar(F);
+TEST_LIB_API void baz(F);
+
+TEST_LIB_API void print_call_stack();
+
+} // namespace test