P99

◆ P99_STRUCT_USE

#define P99_STRUCT_USE (   TYPE,
  VAR,
  ... 
)    P99_FOR((TYPE, VAR), P99_NARG(__VA_ARGS__), P00_SEP, P00_STRUCT_USE, __VA_ARGS__)

Use the fields of variable VAR of type TYPE.

This "lifts" the fields of VAR as local variables onto the local stack and copies their value into these local variables.

See also
P99_STRUCT_UNUSE to restore changed values back into VAR.
Remarks
argument 0 should correspond to a type name (one token) that is not a VLA.
argument 1 must be an identifier
argument 2 must be an identifier
argument 3 must be an identifier
argument 4 must be an identifier

Definition at line 1093 of file p99_for.h.