Derive-C
Loading...
Searching...
No Matches
clone.h File Reference
#include <derive-c/core.h>
Include dependency graph for clone.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DERIVE_CLONE_MEMBER(t, n)
 
#define DERIVE_CLONE(ID)
 

Macro Definition Documentation

◆ DERIVE_CLONE

#define DERIVE_CLONE ( ID)
Value:
ID NAME(ID, clone)(ID const* self) { return (ID){NAME(ID, REFLECT)(DERIVE_CLONE_MEMBER)}; }
#define DERIVE_CLONE_MEMBER(t, n)
Definition clone.h:3
#define NAME(pre, post)
Definition core.h:5
#define ID(type)
Definition hashers.h:17

Definition at line 13 of file clone.h.

13#define DERIVE_CLONE(ID) \
14 ID NAME(ID, clone)(ID const* self) { return (ID){NAME(ID, REFLECT)(DERIVE_CLONE_MEMBER)}; }

◆ DERIVE_CLONE_MEMBER

#define DERIVE_CLONE_MEMBER ( t,
n )
Value:
.n = NAME(t, clone)(&self->n),

Definition at line 3 of file clone.h.