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-06-24 18:05:23 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// toml++ config
|
|
|
|
#define TOML_UNDEF_MACROS 0
|
2022-02-12 13:25:20 +00:00
|
|
|
#ifndef TOML_HEADER_ONLY
|
|
|
|
#define TOML_HEADER_ONLY 0
|
|
|
|
#endif
|
|
|
|
#ifndef TOML_SHARED_LIB
|
|
|
|
#define TOML_SHARED_LIB 0
|
|
|
|
#endif
|
2020-06-24 18:05:23 +00:00
|
|
|
#ifndef USE_SINGLE_HEADER
|
2021-10-26 13:49:23 +00:00
|
|
|
#define USE_SINGLE_HEADER 0
|
2020-06-24 18:05:23 +00:00
|
|
|
#endif
|
2020-10-09 05:50:15 +00:00
|
|
|
#if defined(LEAK_TESTS) && LEAK_TESTS
|
2021-10-26 13:49:23 +00:00
|
|
|
#define TOML_CONFIG_HEADER "leakproof.h"
|
2020-10-09 05:50:15 +00:00
|
|
|
#else
|
2021-10-26 13:49:23 +00:00
|
|
|
#undef LEAK_TESTS
|
|
|
|
#define LEAK_TESTS 0
|
2020-10-09 05:50:15 +00:00
|
|
|
#endif
|
2020-06-24 18:05:23 +00:00
|
|
|
|
|
|
|
// use tl::optional?
|
|
|
|
#if defined(USE_TARTANLLAMA_OPTIONAL) && USE_TARTANLLAMA_OPTIONAL
|
2021-10-26 13:49:23 +00:00
|
|
|
#define TOML_OPTIONAL_TYPE tl::optional
|
2020-06-24 18:05:23 +00:00
|
|
|
#else
|
2021-10-26 13:49:23 +00:00
|
|
|
#undef USE_TARTANLLAMA_OPTIONAL
|
|
|
|
#define USE_TARTANLLAMA_OPTIONAL 0
|
2020-06-24 18:05:23 +00:00
|
|
|
#endif
|
|
|
|
|
2021-10-26 13:49:23 +00:00
|
|
|
// catch2 config
|
2020-06-24 18:05:23 +00:00
|
|
|
#define CATCH_CONFIG_CPP11_TO_STRING
|
|
|
|
#define CATCH_CONFIG_CPP17_OPTIONAL
|
|
|
|
#define CATCH_CONFIG_CPP17_STRING_VIEW
|
|
|
|
#define CATCH_CONFIG_FAST_COMPILE
|
|
|
|
#define CATCH_CONFIG_CONSOLE_WIDTH 120
|
|
|
|
#define CATCH_CONFIG_CPP11_TO_STRING
|
|
|
|
#define CATCH_CONFIG_DISABLE_MATCHERS
|
2020-07-17 13:33:56 +00:00
|
|
|
#define CATCH_CONFIG_NO_NOMINMAX
|
2020-06-24 18:05:23 +00:00
|
|
|
|
2021-10-26 13:49:23 +00:00
|
|
|
// windows.h config (included transitively by catch2 on windows)
|
2020-06-24 18:05:23 +00:00
|
|
|
#ifdef _WIN32
|
2021-10-26 13:49:23 +00:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#define VC_EXTRALEAN
|
|
|
|
#define NOATOM // Atom Manager routines
|
|
|
|
#define NOBITMAP //
|
|
|
|
#define NOCLIPBOARD // Clipboard routines
|
|
|
|
#define NOCOLOR // Screen colors
|
|
|
|
#define NOCOMM // COMM driver routines
|
|
|
|
#define NOCTLMGR // Control and Dialog routines
|
|
|
|
#define NODEFERWINDOWPOS // DeferWindowPos routines
|
|
|
|
#define NODRAWTEXT // DrawText() and DT_*
|
|
|
|
#define NOGDI // All GDI defines and routines
|
|
|
|
#define NOGDICAPMASKS // CC_*, LC_*, PC_*, CP_*, TC_*, RC_
|
|
|
|
#define NOHELP // Help engine interface.
|
|
|
|
#define NOICONS // IDI_*
|
|
|
|
#define NOKANJI // Kanji support stuff.
|
|
|
|
#define NOKEYSTATES // MK_*
|
|
|
|
#define NOKERNEL // All KERNEL defines and routines
|
|
|
|
#define NOMB // MB_* and MessageBox()
|
|
|
|
#define NOMCX // Modem Configuration Extensions
|
|
|
|
#define NOMENUS // MF_*
|
|
|
|
#define NOMEMMGR // GMEM_*, LMEM_*, GHND, LHND, associated routines
|
|
|
|
#define NOMETAFILE // typedef METAFILEPICT
|
|
|
|
#define NOMSG // typedef MSG and associated routines
|
|
|
|
#define NOOPENFILE // OpenFile(), OemToAnsi, AnsiToOem, and OF_*
|
|
|
|
#define NOPROFILER // Profiler interface.
|
|
|
|
#define NORASTEROPS // Binary and Tertiary raster ops
|
|
|
|
#define NOSCROLL // SB_* and scrolling routines
|
|
|
|
#define NOSERVICE // All Service Controller routines, SERVICE_ equates, etc.
|
|
|
|
#define NOSHOWWINDOW // SW_*
|
|
|
|
#define NOSOUND // Sound driver routines
|
|
|
|
#define NOSYSCOMMANDS // SC_*
|
|
|
|
#define NOSYSMETRICS // SM_*
|
|
|
|
#define NOTEXTMETRIC // typedef TEXTMETRIC and associated routines
|
|
|
|
#define NOUSER // All USER defines and routines
|
|
|
|
#define NOVIRTUALKEYCODES // VK_*
|
|
|
|
#define NOWH // SetWindowsHook and WH_*
|
|
|
|
#define NOWINOFFSETS // GWL_*, GCL_*, associated routines
|
|
|
|
#define NOWINMESSAGES // WM_*, EM_*, LB_*, CB_*
|
|
|
|
#define NOWINSTYLES // WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
|
|
|
|
//#define NOMINMAX // Macros min(a,b) and max(a,b)
|
|
|
|
//#define NONLS // All NLS defines and routines
|
2020-06-24 18:05:23 +00:00
|
|
|
#endif
|
2020-07-25 17:37:30 +00:00
|
|
|
|
|
|
|
// test harness stuff
|
|
|
|
#ifndef SHOULD_HAVE_FP16
|
2021-10-26 13:49:23 +00:00
|
|
|
#define SHOULD_HAVE_FP16 0
|
2020-07-25 17:37:30 +00:00
|
|
|
#endif
|
|
|
|
#ifndef SHOULD_HAVE_FLOAT16
|
2021-10-26 13:49:23 +00:00
|
|
|
#define SHOULD_HAVE_FLOAT16 0
|
2020-07-25 17:37:30 +00:00
|
|
|
#endif
|
|
|
|
#ifndef SHOULD_HAVE_FLOAT128
|
2021-10-26 13:49:23 +00:00
|
|
|
#define SHOULD_HAVE_FLOAT128 0
|
2020-07-25 17:37:30 +00:00
|
|
|
#endif
|
2020-07-27 22:04:52 +00:00
|
|
|
#ifndef SHOULD_HAVE_INT128
|
2021-10-26 13:49:23 +00:00
|
|
|
#define SHOULD_HAVE_INT128 0
|
2020-07-27 22:04:52 +00:00
|
|
|
#endif
|
2020-07-25 17:37:30 +00:00
|
|
|
#ifndef SHOULD_HAVE_EXCEPTIONS
|
2021-10-26 13:49:23 +00:00
|
|
|
#define SHOULD_HAVE_EXCEPTIONS 1
|
2020-07-25 17:37:30 +00:00
|
|
|
#endif
|