mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
12 lines
304 B
C
12 lines
304 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)) \
|
|
xrpl::Throw<Json::error>(message);
|
|
|
|
#endif
|