8475061136
thanks to Nico Werner, who did most of the porting work
13 lines
452 B
C++
13 lines
452 B
C++
#define DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL
|
|
#include <doctest/doctest.h>
|
|
|
|
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN
|
|
#include <cstdio>
|
|
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END
|
|
|
|
TEST_CASE("dll") {
|
|
printf("I am a test from the dll!\n");
|
|
}
|
|
|
|
DOCTEST_SYMBOL_EXPORT void from_dll(); // to silence "-Wmissing-declarations" with GCC
|
|
DOCTEST_SYMBOL_EXPORT void from_dll() {} // force the creation of a .lib file with MSVC
|