#include "version.h"
#include <daw/json/daw_json_exception.h>
#include <daw/daw_attributes.h>
#include <daw/daw_likely.h>
#include <daw/daw_not_null.h>
#include <cstddef>
#include <daw/stdinc/move_fwd_exch.h>
#include <exception>
#include <string_view>
Go to the source code of this file.
|
#define | daw_json_assert_weak(Bool, ...) |
| Assert that Bool is true when in Checked Input mode If false pass rest of args to daw_json_error. More...
|
|
#define | daw_json_ensure(Bool, ...) |
| Ensure that Bool is true. If false pass rest of args to daw_json_error. More...
|
|
◆ daw_json_assert_weak
#define daw_json_assert_weak |
( |
|
Bool, |
|
|
|
... |
|
) |
| |
Value: do { \
if constexpr( not ParseState::is_unchecked_input ) { \
if( DAW_UNLIKELY( not( Bool ) ) ) { \
daw_json_error( __VA_ARGS__ ); \
} \
} \
} while( false )
Assert that Bool is true when in Checked Input mode If false pass rest of args to daw_json_error.
Definition at line 162 of file daw_json_assert.h.
◆ daw_json_ensure
#define daw_json_ensure |
( |
|
Bool, |
|
|
|
... |
|
) |
| |
Value: do { \
if( DAW_UNLIKELY( not( Bool ) ) ) { \
daw_json_error( __VA_ARGS__ ); \
} \
} while( false )
Ensure that Bool is true. If false pass rest of args to daw_json_error.
Definition at line 153 of file daw_json_assert.h.