2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-01-29 07:42:25 +00:00
Files
mysql/test/common/include/test_common/source_location.hpp
Anarthal (Rubén Pérez) a8c992dd95 as_netresult completion token for tests
Restructured handshake integration tests
Removed er_connection infrastructure
Reworked network_result
Greatly simplified integration tests
2024-07-23 18:27:30 +02:00

23 lines
825 B
C++

//
// Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_MYSQL_TEST_COMMON_INCLUDE_TEST_COMMON_SOURCE_LOCATION_HPP
#define BOOST_MYSQL_TEST_COMMON_INCLUDE_TEST_COMMON_SOURCE_LOCATION_HPP
#include <boost/assert/source_location.hpp>
// boost::source_location triggers a bug on gcc < 8 when using PCHs
// BOOST_CURRENT_LOCATION complains about a redefinition of __PRETTY_FUNCTION__
// when used as default argument
#if defined(BOOST_GCC) && BOOST_GCC < 80000
#define BOOST_MYSQL_CURRENT_LOCATION ::boost::source_location(__FILE__, __LINE__, "")
#else
#define BOOST_MYSQL_CURRENT_LOCATION BOOST_CURRENT_LOCATION
#endif
#endif