mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-11-04 17:27:18 +00:00
74e7209cca
also: - decoupled `TOML_EXCEPTION` from ex. mode (closes #13) - added `TOML_OPTIONAL_TYPE` customization point - added tests for a custom optional type - ci refactoring
25 lines
598 B
C++
25 lines
598 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
|
|
|
|
#define TOML_ALL_INLINE 0
|
|
#define TOML_IMPLEMENTATION
|
|
#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);
|
|
}
|