Files
prog-c/tp3/TP3/tools.h

14 lines
613 B
C
Raw Normal View History

2024-10-06 15:32:20 +02:00
#ifndef TOOLS_H_
#define TOOLS_H_
// C2x typeof supported by clang and gcc but not by ccls.
#define SWAP(a, b) \
do { \
__typeof__(a) temp; \
temp = a; \
a = b; \
b = temp; \
} while (0)
#endif // TOOLS_H_