Derive-C
Loading...
Searching...
No Matches
def.h
Go to the documentation of this file.
1#include <derive-c/core/helpers.h> // NOLINT(misc-include-cleaner)
2
33
34#if defined INTERNAL_NAME
35 #if defined SELF
36 #pragma push_macro("SELF")
37 #define SELF_PUSHED
38 #undef SELF
39 #define SELF EXPAND(INTERNAL_NAME)
40 #endif
41#elif defined NAME
42 #if defined SELF
43 #error "Cannot redefine SELF"
44 #endif
45 #define SELF EXPAND(NAME)
46#else
47 #if !defined __clang_analyzer__
48 #error "The `SELF` type for a data structure must be defined (by `NAME` or `INTERNAL_NAME`)"
49 #endif
50 #define NAME derive_c_parameter_self
51 #define SELF NAME
52#endif