1 // Copyright 2015, Tobias Hermann and the FunctionalPlus contributors. 2 // https://github.com/Dobiasd/FunctionalPlus 3 // Distributed under the Boost Software License, Version 1.0. 4 // (See accompanying file LICENSE_1_0.txt or copy at 5 // http://www.boost.org/LICENSE_1_0.txt) 6 7 #include <doctest/doctest.h> 8 #include <fplus/fplus.hpp> 9 10 TEST_CASE("show_versions - print_defines") 11 { 12 #ifdef __cplusplus 13 std::cout << "__cplusplus: " << __cplusplus << std::endl; 14 #endif 15 16 #ifdef _LIBCPP_VERSION 17 std::cout << "_LIBCPP_VERSION: " << _LIBCPP_VERSION << std::endl; 18 #endif 19 20 #ifdef _LIBCPP_ABI_VERSION 21 std::cout << "_LIBCPP_ABI_VERSION: " << _LIBCPP_ABI_VERSION << std::endl; 22 #endif 23 24 #ifdef _MSC_VER 25 std::cout << "_MSC_VER: " << _MSC_VER << std::endl; 26 #endif 27 28 #ifdef __GLIBCPP__ 29 std::cout << "__GLIBCPP__: " << __GLIBCPP__ << std::endl; 30 #endif 31 32 #ifdef __GLIBCXX__ 33 std::cout << "__GLIBCXX__: " << __GLIBCXX__ << std::endl; 34 #endif 35 }