#include <optional>
#include <string>
#include <type_traits>
#include <variant>
#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;
#define MAKE_SLICES(name, c_ty)
Definition: diplomat_runtime.hpp:36