summaryrefslogtreecommitdiff
path: root/geom_matching/wasserstein/mpi/debug.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'geom_matching/wasserstein/mpi/debug.hpp')
-rw-r--r--geom_matching/wasserstein/mpi/debug.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/geom_matching/wasserstein/mpi/debug.hpp b/geom_matching/wasserstein/mpi/debug.hpp
new file mode 100644
index 0000000..a74a1d8
--- /dev/null
+++ b/geom_matching/wasserstein/mpi/debug.hpp
@@ -0,0 +1,8 @@
+#pragma once
+
+#ifdef DEBUG
+#include <iostream>
+#define IFDEBUG(x) do { x } while (false)
+#else
+#define IFDEBUG(x)
+#endif