#include <derive-c/core/helpers.h>
#include <stdbool.h>
Go to the source code of this file.
◆ DERIVE_ORD
Value: bool NS(
ID, gt)(
ID const* self_1,
ID const* self_2) { \
} \
bool NS(
ID, lt)(
ID const* self_1,
ID const* self_2) { \
}
#define DERIVE_ORD_MEMBER_GT(t, n)
#define DERIVE_ORD_MEMBER_LT(t, n)
Definition at line 7 of file ord.h.
7#define DERIVE_ORD(ID) \
8 bool NS(ID, gt)(ID const* self_1, ID const* self_2) { \
9 return false NS(ID, REFLECT)(DERIVE_ORD_MEMBER_GT); \
10 } \
11 bool NS(ID, lt)(ID const* self_1, ID const* self_2) { \
12 return false NS(ID, REFLECT)(DERIVE_ORD_MEMBER_LT); \
13 }
◆ DERIVE_ORD_MEMBER_GT
#define DERIVE_ORD_MEMBER_GT |
( |
| t, |
|
|
| n ) |
Value:||
NS(t, gt)(&self_1->n, &self_2->n)
Definition at line 4 of file ord.h.
◆ DERIVE_ORD_MEMBER_LT
#define DERIVE_ORD_MEMBER_LT |
( |
| t, |
|
|
| n ) |
Value:||
NS(t, lt)(&self_1->n, &self_2->n)
Definition at line 5 of file ord.h.