1
1
// ----------------------------------------------------------------------------------------------------------------------
2
2
//
3
- // toml++ v0.5.2
3
+ // toml++ v0.6.0
4
4
// https://github.com/marzer/tomlplusplus
5
5
// SPDX-License-Identifier: MIT
6
6
//
123
123
#endif
124
124
#ifdef __EXCEPTIONS
125
125
#define TOML_COMPILER_EXCEPTIONS 1
126
+ #else
127
+ #define TOML_COMPILER_EXCEPTIONS 0
126
128
#endif
127
129
128
130
// floating-point from_chars and to_chars are not implemented in any version of clang as of 1/1/2020
148
150
#endif
149
151
#ifdef _CPPUNWIND
150
152
#define TOML_COMPILER_EXCEPTIONS 1
153
+ #else
154
+ #define TOML_COMPILER_EXCEPTIONS 0
151
155
#endif
152
156
153
157
#elif defined(__GNUC__)
170
174
#endif
171
175
#ifdef __cpp_exceptions
172
176
#define TOML_COMPILER_EXCEPTIONS 1
177
+ #else
178
+ #define TOML_COMPILER_EXCEPTIONS 0
173
179
#endif
174
180
175
181
// these pass the __has_attribute() test but cause warnings on if/else branches =/
200
206
#define TOML_CPP 17
201
207
#endif
202
208
#ifndef TOML_COMPILER_EXCEPTIONS
203
- #define TOML_COMPILER_EXCEPTIONS 0
209
+ #define TOML_COMPILER_EXCEPTIONS 1
204
210
#endif
205
211
#if TOML_COMPILER_EXCEPTIONS
206
212
#ifndef TOML_EXCEPTIONS
222
228
#define TOML_MAY_THROW_UNLESS (...) noexcept
223
229
#define TOML_NS1_EX _noex
224
230
#endif
225
- #ifndef TOML_DOXYGEN
226
- #define TOML_DOXYGEN 0
227
- #endif
228
231
#ifndef TOML_DISABLE_INIT_WARNINGS
229
232
#define TOML_DISABLE_INIT_WARNINGS
230
233
#endif
305
308
#endif
306
309
307
310
#define TOML_LIB_MAJOR 0
308
- #define TOML_LIB_MINOR 5
309
- #define TOML_LIB_PATCH 2
311
+ #define TOML_LIB_MINOR 6
312
+ #define TOML_LIB_PATCH 0
310
313
311
314
#define TOML_LANG_MAJOR 0
312
315
#define TOML_LANG_MINOR 5
347
350
#define TOML_NS4
348
351
#define TOML_NS5
349
352
350
- #if !TOML_DOXYGEN
353
+ #ifndef DOXYGEN
351
354
352
355
#define TOML_START_2 (VER, ARG1, ARG2, ARG3, ARG4, ARG5 ) \
353
356
namespace toml { inline namespace v ##VER##ARG1##ARG2##ARG3##ARG4##ARG5
@@ -448,6 +451,10 @@ TOML_START
448
451
449
452
#endif
450
453
454
+ #ifndef DOXYGEN
455
+
456
+ // foward declarations are hidden from doxygen
457
+ // because they fuck it up =/
451
458
struct date ;
452
459
struct time ;
453
460
struct time_offset ;
@@ -460,6 +467,8 @@ TOML_START
460
467
template <typename > class default_formatter ;
461
468
template <typename > class json_formatter ;
462
469
470
+ #endif // !DOXYGEN
471
+
463
472
enum class node_type : uint8_t
464
473
{
465
474
none,
@@ -556,7 +565,7 @@ TOML_START
556
565
TOML_PUSH_WARNINGS
557
566
TOML_DISABLE_INIT_WARNINGS
558
567
559
- #if TOML_DOXYGEN || !TOML_EXCEPTIONS
568
+ #if defined(DOXYGEN) || !TOML_EXCEPTIONS
560
569
561
570
class parse_error final
562
571
{
@@ -4732,7 +4741,7 @@ TOML_IMPL_END
4732
4741
4733
4742
TOML_START
4734
4743
{
4735
- #if TOML_DOXYGEN || !TOML_EXCEPTIONS
4744
+ #if defined(DOXYGEN) || !TOML_EXCEPTIONS
4736
4745
4737
4746
class parse_result final
4738
4747
{
@@ -9200,7 +9209,6 @@ TOML_END
9200
9209
#undef TOML_STRING_PREFIX_1
9201
9210
#undef TOML_STRING_PREFIX
9202
9211
#undef TOML_UNDEF_MACROS
9203
- #undef TOML_DOXYGEN
9204
9212
#undef TOML_RELOPS_REORDERING
9205
9213
#undef TOML_ASYMMETRICAL_EQUALITY_OPS
9206
9214
#undef TOML_NS1_EX
0 commit comments