P99

◆ P99_PLAIN_TYPE

#define P99_PLAIN_TYPE (   T)
Value:
\
p99_inline T* P99_PASTE2(T, _init)(T *p00_id) { \
if (p00_id) *p00_id = 0; \
return p00_id; \
} \ \
p99_inline void P99_PASTE2(T, _destroy)(T* p00_id) { \
/* empty */ \
(void)p00_id; \
} \
P99_MACRO_END(P99_PLAIN_TYPE, T)

Declare trivial init and destroy functions for type T.

Remarks
argument 0 should correspond to a type name (one token) that is not a VLA.

Definition at line 142 of file p99_type.h.

void
void void
Definition: p99_bitset.h:84
P99_PASTE2
#define P99_PASTE2(_1, _2)
Paste two token sequences at their junction.
Definition: p99_paste.h:82
P99_PLAIN_TYPE
#define P99_PLAIN_TYPE(T)
Declare trivial init and destroy functions for type T.
Definition: p99_type.h:142