2020-06-26 18:01:27 +00:00
|
|
|
// This file is a part of toml++ and is subject to the the terms of the MIT license.
|
2021-01-02 15:48:47 +00:00
|
|
|
// Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>
|
2020-06-26 18:01:27 +00:00
|
|
|
// See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2020-01-04 14:21:38 +00:00
|
|
|
#pragma once
|
2020-06-24 18:05:23 +00:00
|
|
|
#include "settings.h"
|
2020-01-04 14:21:38 +00:00
|
|
|
|
2020-07-17 13:33:56 +00:00
|
|
|
#ifdef __clang__
|
2021-05-11 21:48:53 +00:00
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Weverything"
|
2020-07-21 13:11:32 +00:00
|
|
|
#elif defined (__GNUC__)
|
2021-05-11 21:48:53 +00:00
|
|
|
#pragma GCC diagnostic push
|
|
|
|
#pragma GCC diagnostic ignored "-Wall"
|
|
|
|
#pragma GCC diagnostic ignored "-Wextra"
|
|
|
|
#pragma GCC diagnostic ignored "-Wpadded"
|
|
|
|
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
#pragma warning(push, 0)
|
|
|
|
#pragma warning(disable : 4365)
|
|
|
|
#pragma warning(disable : 4868)
|
|
|
|
#pragma warning(disable : 5105)
|
2020-07-17 13:33:56 +00:00
|
|
|
#endif
|
|
|
|
|
2020-01-06 18:21:16 +00:00
|
|
|
#if __has_include(<Catch2/single_include/catch2/catch.hpp>)
|
|
|
|
#include <Catch2/single_include/catch2/catch.hpp>
|
|
|
|
#else
|
2021-04-18 12:04:46 +00:00
|
|
|
#error Catch2 is missing! You probably need to fetch submodules ("git submodule update --init --depth 1 external/Catch2")
|
2020-01-06 18:21:16 +00:00
|
|
|
#endif
|
2020-07-17 13:33:56 +00:00
|
|
|
|
|
|
|
#ifdef __clang__
|
2021-05-11 21:48:53 +00:00
|
|
|
#pragma clang diagnostic pop
|
|
|
|
#elif defined(__GNUC__)
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
#pragma warning(pop)
|
2020-07-17 13:33:56 +00:00
|
|
|
#endif
|
2020-07-21 13:11:32 +00:00
|
|
|
|