mirror of
https://github.com/XRPLF/clio.git
synced 2026-08-21 20:50:53 +00:00
19 lines
378 B
C++
19 lines
378 B
C++
#pragma once
|
|
|
|
#include <xrpl/protocol/jss.h>
|
|
|
|
/**
|
|
* @brief Helper macro for borrowing from xrpl::jss static (J)son (S)trings.
|
|
*/
|
|
#define JS(x) xrpl::jss::x.cStr()
|
|
|
|
/**
|
|
* @brief Access the lower case copy of a static (J)son (S)tring.
|
|
*/
|
|
#define JSL(x) util::toLower(JS(x))
|
|
|
|
/**
|
|
* @brief Provides access to (SF)ield name (S)trings.
|
|
*/
|
|
#define SFS(x) xrpl::x.jsonName.cStr()
|