P99
p99
p99_swap.h
P99_ASORT
P99_QSORT
P99_SWAP
p99_swap1
p99_swap2
◆
P99_ASORT
#define P99_ASORT
(
TAB,
...
)
Value:
P99_IF_LT
(
P99_NARG
(__VA_ARGS__), 2) \
(qsort((TAB),
P99_ALEN
(TAB),
sizeof
(TAB)[0], __VA_ARGS__)) \
(
qsort_s
((TAB),
P99_ALEN
(TAB),
sizeof
(TAB)[0], __VA_ARGS__))
Remarks
argument 0 maybe evaluated several times for its type but only once for its value
Definition at line
182
of file
p99_swap.h
.
P99_ALEN
#define P99_ALEN(ARR, N)
Produce the length of the argument array ARR in terms of number of elements.
Definition:
p99_for.h:678
P99_NARG
#define P99_NARG(...)
Return the length of the variable length argument list, where an empty argument list is considered to...
Definition:
p99_args.h:117
P99_IF_LT
#define P99_IF_LT(A, B)
Test two decimal numbers A and B for whether A is strictly less than B.
Definition:
p99_if.h:120
qsort_s
#define qsort_s(B, N, S, CMP, CTX)
A generic sorting routine.
Definition:
p99_qsort.h:496
Generated by
1.8.17