P99

◆ P99_ACOPY

#define P99_ACOPY (   TYPE,
  N,
  VAR,
 
)

Expand to an array literal of type TYPE[N] copying from another array.

The third argument is the array VAR to be copied from. The optional forth argument M is the number of elements from VAR that are to be copied. It defaults to N if omitted. Obviously we must always have M <= N for this to work.

This can be used to call a function with a copy of of VAR.

Remarks
The base type of VAR must be assignment compatible with type TYPE.

Definition at line 321 of file p99_map.h.