summaryrefslogtreecommitdiff
path: root/lib/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-12-23 11:45:13 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-12-23 11:45:13 -0500
commit210e1a271e3a61f31ce14ef8d9211277c55608de (patch)
tree910504fc9ea70ba0d98ce8fa24912a73dcf0d357 /lib/src
parent21203053a99c1bc6ce5d502131dc9d964d30d842 (diff)
downloadfuse_networks-210e1a271e3a61f31ce14ef8d9211277c55608de.tar.gz
fuse_networks-210e1a271e3a61f31ce14ef8d9211277c55608de.tar.bz2
fuse_networks-210e1a271e3a61f31ce14ef8d9211277c55608de.zip
fixed assert trick to actually work
Diffstat (limited to 'lib/src')
-rw-r--r--lib/src/graph.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/src/graph.cpp b/lib/src/graph.cpp
index b9d4f03..58c97ae 100644
--- a/lib/src/graph.cpp
+++ b/lib/src/graph.cpp
@@ -6,6 +6,7 @@
#define JCV_REAL_TYPE double
#define JCV_ATAN2 atan2
#define JCV_FLT_MAX 1.7976931348623157E+308
+#include <assert.h>
#undef assert
#define assert_error_report_helper(cond) "assertion failed: "
#define assert(cond) {if(!(cond)) { std::cerr << assert_error_report_helper(cond) "\n"; throw assert_error_report_helper(cond); } }