P99

◆ P99_DEFINE_STRUCT

#define P99_DEFINE_STRUCT (   NAME,
  ... 
)
Value:
struct NAME { \
P99_SEP(P00_IDENT, __VA_ARGS__); \
}; \
P00_STRUCT_TYPEDEFS(NAME, __VA_ARGS__)

Declare a structure of name NAME composed of the field declarations that are given in the remaining arguments.

For this to work the argument list must contain the declaration of the fields, one per argument.

Remarks
The declarations must be such that the name of the field is at the end of the declaration.
See also
P99_STRUCT_USE to see how to lift all or parts of the fields that are defined here as local variables on the stack of the current function.

Definition at line 1068 of file p99_for.h.