mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
12 lines
306 B
C
12 lines
306 B
C
#ifndef XRPL_JSON_JSON_ASSERT_H_INCLUDED
|
|
#define XRPL_JSON_JSON_ASSERT_H_INCLUDED
|
|
|
|
#include <xrpl/basics/contract.h>
|
|
#include <xrpl/json/json_errors.h>
|
|
|
|
#define JSON_ASSERT_MESSAGE(condition, message) \
|
|
if (!(condition)) \
|
|
ripple::Throw<Json::error>(message);
|
|
|
|
#endif
|