#include "daw/json/impl/version.h"
#include "daw/json/daw_json_exception.h"
#include <daw/daw_attributes.h>
#include <daw/daw_cpp_feature_check.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>
#include <utility>
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.
|
| |
| #define | daw_json_ensure(Bool, ...) |
| | Ensure that Bool is true. If false pass rest of args to daw_json_error.
|
| |
|
| DAW_ATTRIB_NOINLINE void | daw::json::anonymous_namespace{daw_json_assert.h}::daw_json_error (bool b, ErrorReason reason) |
| |
| template<typename ParseState > |
| DAW_ATTRIB_NOINLINE void | daw::json::anonymous_namespace{daw_json_assert.h}::daw_json_error (bool b, ErrorReason reason, ParseState const &location) |
| |
| DAW_ATTRIB_NOINLINE void | daw::json::anonymous_namespace{daw_json_assert.h}::daw_json_error (bool b, json_details::missing_member reason) |
| |
| template<typename ParseState > |
| DAW_ATTRIB_NOINLINE void | daw::json::anonymous_namespace{daw_json_assert.h}::daw_json_error (bool b, json_details::missing_member reason, ParseState const &location) |
| |
| DAW_ATTRIB_NOINLINE void | daw::json::anonymous_namespace{daw_json_assert.h}::daw_json_error (bool b, json_details::missing_token reason) |
| |
| template<typename ParseState > |
| DAW_ATTRIB_NOINLINE void | daw::json::anonymous_namespace{daw_json_assert.h}::daw_json_error (bool b, json_details::missing_token reason, ParseState const &location) |
| |
| DAW_ATTRIB_NOINLINE void | daw::json::default_error_handler_terminating (json_exception &&jex, void *) |
| |
◆ 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( not( Bool ), __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 225 of file daw_json_assert.h.
◆ daw_json_ensure
| #define daw_json_ensure |
( |
|
Bool, |
|
|
|
... |
|
) |
| |
Value: do { \
if( DAW_UNLIKELY( not( Bool ) ) ) { \
daw_json_error( not( Bool ), __VA_ARGS__ ); \
} \
} while( false )
Ensure that Bool is true. If false pass rest of args to daw_json_error.
Definition at line 185 of file daw_json_assert.h.