mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-11-02 11:26:26 +00:00
5ca6b29cb9
also: - fixed some parsing and printing ops being locale-dependent (fixes #19) - fixed pkgconfig subdir being wrong (fixes #23) - fixed some parsing errors at EOF when `TOML_EXCEPTIONS = 0` - fixed some unreferenced variable warnings on older compilers - fixed some 'maybe-uninitialized' false-positives on GCC9 - added debug/release awareness to CI tests - added locale awareness to catch test runner
14 lines
267 B
C++
14 lines
267 B
C++
#define CATCH_CONFIG_RUNNER
|
|
#include "catch2.h"
|
|
#include <clocale>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
#ifdef _WIN32
|
|
SetConsoleOutputCP(65001);
|
|
#endif
|
|
std::setlocale(LC_ALL, "");
|
|
std::locale::global(std::locale(""));
|
|
return Catch::Session().run(argc, argv);
|
|
}
|