From 1c76de40d1e4ee8d07aa3723a8931b2e18c0f626 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 29 Dec 2021 20:45:55 -0500 Subject: [PATCH] minor fix --- gtsam/discrete/tests/testDecisionTree.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtsam/discrete/tests/testDecisionTree.cpp b/gtsam/discrete/tests/testDecisionTree.cpp index 9eb06f2c4..28b8866ad 100644 --- a/gtsam/discrete/tests/testDecisionTree.cpp +++ b/gtsam/discrete/tests/testDecisionTree.cpp @@ -32,12 +32,14 @@ using namespace std; using namespace gtsam; template -void DOT(const T&f, const string& filename) { +void write_dot(const T&f, const string& filename) { #ifndef DISABLE_DOT f.dot(filename); #endif } +#define DOT(x)(write_dot(x,#x)) + struct Crazy { int a; double b; }; typedef DecisionTree CrazyDecisionTree; // check that DecisionTree is actually generic (as it pretends to be)