1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#if 0 #include <stdatomic.h> __BASE atomic_exchange(volatile __TYPE *object, __BASE desired) { return *object = desired; } #endif /* STDC(201112) */