Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Be consistent on the number of indirections.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 10 Dec 2019 08:23:11 +0000 (09:23 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 12 Dec 2019 09:47:04 +0000 (10:47 +0100)
include/xbt/base.h

index 5dbeb50..bd19a32 100644 (file)
@@ -95,7 +95,7 @@
 /* Concatenate arguments. _XBT_CONCAT2 adds a level of indirection over _XBT_CONCAT. */
 #define _XBT_CONCAT(a, b) a##b
 #define _XBT_CONCAT2(a, b) _XBT_CONCAT(a, b)
-#define _XBT_CONCAT3(a, b, c) _XBT_CONCAT2(_XBT_CONCAT(a, b), c)
+#define _XBT_CONCAT3(a, b, c) _XBT_CONCAT2(_XBT_CONCAT2(a, b), c)
 #define _XBT_CONCAT4(a, b, c, d) _XBT_CONCAT2(_XBT_CONCAT3(a, b, c), d)
 
 /*