#include <optional>
#include <string>
#include <string_view>
#include <type_traits>
#include <variant>
#include <cstdint>
#include <functional>
#include <memory>
#include <limits>
#include <array>
Go to the source code of this file.
◆ MAKE_SLICES
#define MAKE_SLICES |
( |
| name, |
|
|
| c_ty ) |
Value: typedef struct Diplomat##name##View { \
const c_ty* data; \
size_t len; \
} Diplomat##name##View; \
typedef struct Diplomat##name##ViewMut { \
c_ty* data; \
size_t len; \
} Diplomat##name##ViewMut; \
typedef struct Diplomat##name##Array { \
const c_ty* data; \
size_t len; \
} Diplomat##name##Array;
◆ MAKE_SLICES_AND_OPTIONS
#define MAKE_SLICES_AND_OPTIONS |
( |
| name, |
|
|
| c_ty ) |
Value:
typedef struct Option##name {union { c_ty ok; }; bool is_ok; } Option##name; \
typedef struct Option##name##View {union { Diplomat##name##View ok; }; bool is_ok; } Option##name##View; \
typedef struct Option##name##ViewMut {union { Diplomat##name##ViewMut ok; }; bool is_ok; } Option##name##ViewMut; \
typedef struct Option##name##Array {union { Diplomat##name##Array ok; }; bool is_ok; } Option##name##Array; \
#define MAKE_SLICES(name, c_ty)
Definition diplomat_runtime.hpp:42