mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-11-02 11:26:26 +00:00
40ffee43fb
also: - added `toml_version.h` - added version number to toml.hpp - added `node::visit()` - added `table::empty()` - added `array::empty()` - added version number to `toml.hpp` - added ostream operator overload for `source_position` - added tests for string escape sequences - added tests for + in bare keys (toml/issues/687) - added tests for hexfloat literals (toml/issues/562) - added c++20 char8_t detection to meson - moved third party submodules to `/extern` - refactored noexcept version of `parse_result` to be more useful - refactored all code to 'mostly' stick to a 120 column limit - fixed some minor stuff picked up by gcc9
60 lines
2.6 KiB
C
60 lines
2.6 KiB
C
#pragma once
|
|
|
|
//catch config
|
|
#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
|
|
|
|
//windows.h config
|
|
#ifdef _WIN32
|
|
#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 NOMINMAX // - Macros min(a,b) and max(a,b)
|
|
#define NOMSG // - typedef MSG and associated routines
|
|
#define NONLS // - All NLS defines and 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_*
|
|
#endif
|
|
|
|
#if __has_include(<Catch2/single_include/catch2/catch.hpp>)
|
|
#include <Catch2/single_include/catch2/catch.hpp>
|
|
#else
|
|
#error Catch2 is missing! You probably need to fetch submodules ("git submodule update --init --recursive")
|
|
#endif
|