Derive-C
Loading...
Searching...
No Matches
eq.h
Go to the documentation of this file.
1
#include <
derive-c/core/helpers.h
>
2
#include <stdbool.h>
3
4
#define DERIVE_EQ_MEMBER(t, n) &&NS(t, eq)(&self_1->n, &self_2->n)
5
6
#define DERIVE_EQ(ID) \
7
bool NS(ID, eq)(ID const* self_1, ID const* self_2) { \
8
return true NS(ID, REFLECT)(DERIVE_EQ_MEMBER); \
9
}
helpers.h
src
derive-c
derives
eq.h
Generated by
1.14.0