#include <derive-c/core.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
◆ DERIVE_STD_SIMPLE
#define DERIVE_STD_SIMPLE |
( |
| t | ) |
|
Value: bool NAME(t, eq)(t
const* self_1, t
const* self_2) {
return *self_1 == *self_2; } \
t
NAME(t, clone)(t
const* self) {
return *self; } \
bool NAME(t, gt)(t
const* self_1, t
const* self_2) {
return *self_1 > *self_2; } \
bool NAME(t, lt)(t
const* self_1, t
const* self_2) {
return *self_1 < *self_2; }
Definition at line 7 of file std.h.
7#define DERIVE_STD_SIMPLE(t) \
8 bool NAME(t, eq)(t const* self_1, t const* self_2) { return *self_1 == *self_2; } \
9 t NAME(t, clone)(t const* self) { return *self; } \
10 bool NAME(t, gt)(t const* self_1, t const* self_2) { return *self_1 > *self_2; } \
11 bool NAME(t, lt)(t const* self_1, t const* self_2) { return *self_1 < *self_2; }