Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
msgpack.hpp File Reference
#include "msgpack_impl/concepts.hpp"
#include "msgpack_impl/name_value_pair_macro.hpp"
#include <msgpack/sbuffer_decl.hpp>
#include <string>
#include <string_view>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  msgpack_detail
 

Macros

#define MSGPACK_FIELDS(...)
 
#define MSGPACK_CAMEL_CASE_FIELDS(...)
 

Functions

constexpr std::string msgpack_detail::camel_case (std::string_view name)
 
template<typename T >
constexpr decltype(auto) msgpack_detail::unwrap_ref (T &t)
 

Macro Definition Documentation

◆ MSGPACK_CAMEL_CASE_FIELDS

#define MSGPACK_CAMEL_CASE_FIELDS (   ...)
Value:
void msgpack(auto pack_fn) \
{ \
auto temp_args = std::make_tuple(NVPFG(::msgpack_detail::camel_case, std::ref, __VA_ARGS__)); \
std::apply([&](auto&... args) { pack_fn(::msgpack_detail::unwrap_ref(args)...); }, temp_args); \
}
#define NVPFG(F, G,...)
constexpr decltype(auto) unwrap_ref(T &t)
Definition msgpack.hpp:151
constexpr std::string camel_case(std::string_view name)
Definition msgpack.hpp:130

Definition at line 165 of file msgpack.hpp.

◆ MSGPACK_FIELDS

#define MSGPACK_FIELDS (   ...)
Value:
void msgpack(auto pack_fn) \
{ \
pack_fn(NVP(__VA_ARGS__)); \
}
#define NVP(...)
Examples
/opt/build/repo/barretenberg/cpp/src/barretenberg/avm_fuzzer/fuzz_lib/instruction.hpp.

Definition at line 121 of file msgpack.hpp.