From 210e1a271e3a61f31ce14ef8d9211277c55608de Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 23 Dec 2018 11:45:13 -0500 Subject: fixed assert trick to actually work --- lib/src/graph.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/src') 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 #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); } } -- cgit v1.2.3-70-g09d2