mirror of
https://github.com/marzer/tomlplusplus.git
synced 2025-02-23 18:40:04 +00:00
also: - included <cassert> directly in 'debug' builds when TOML_ASSERT isn't defined - minor preprocessor cleanup - minor documentation fixes
26 lines
650 B
C++
26 lines
650 B
C++
#ifdef TARTANLLAMA_OPTIONAL
|
|
#if __has_include(<tloptional/include/tl/optional.hpp>)
|
|
#include <tloptional/include/tl/optional.hpp>
|
|
#else
|
|
#error TartanLlama/optional is missing! You probably need to fetch submodules ("git submodule update --init extern/tloptional")
|
|
#endif
|
|
#define TOML_OPTIONAL_TYPE tl::optional
|
|
#endif
|
|
#if !defined(_MSC_VER) || !defined(_M_IX86)
|
|
#define TOML_ALL_INLINE 0
|
|
#define TOML_IMPLEMENTATION
|
|
#endif
|
|
#include "../include/toml++/toml.h"
|
|
|
|
#define CATCH_CONFIG_RUNNER
|
|
#include "catch2.h"
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
#ifdef _WIN32
|
|
SetConsoleOutputCP(65001);
|
|
#endif
|
|
|
|
return Catch::Session().run(argc, argv);
|
|
}
|