#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_