- CHECK_ARGS(buf == nullptr && count > 0, MPI_ERR_BUFFER, \
- "%s: param %d %s cannot be NULL if %s > 0",__func__, num, #buf, #count);
-#define CHECK_COUNT(num, count) \
- CHECK_NEGATIVE(num, MPI_ERR_COUNT, count)
+ CHECK_ARGS((buf) == nullptr && (count) > 0, MPI_ERR_BUFFER, \
+ "%s: param %d %s cannot be NULL if %s > 0",__func__, (num), _XBT_STRINGIFY(buf), _XBT_STRINGIFY(count));
+#define CHECK_COUNT(num, count) \
+ CHECK_NEGATIVE((num), MPI_ERR_COUNT, (count))