init projet
This commit is contained in:
13
tp3/TP3/tools.h
Normal file
13
tp3/TP3/tools.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#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_
|
||||
Reference in New Issue
Block a user