debug: move maths header inc to avoid circular dep

This commit is contained in:
Danny Robson 2015-02-05 20:35:25 +11:00
parent 10cb9e2458
commit 169bc5f62b

View File

@ -20,8 +20,7 @@
#ifndef __DEBUG_HPP
#define __DEBUG_HPP
#include "maths.hpp"
//#include "maths.hpp" // XXX: See notes at the end of file for maths.hpp inclusion
#include <stdexcept>
#include <iostream>
#include <sstream>
@ -269,4 +268,11 @@ namespace debug {
void init (void);
}
///////////////////////////////////////////////////////////////////////////////
// XXX: maths needs to be included so that CHECK_EQ/NEQ can call almost_equal,
// but maths.hpp might be using CHECK_ macros so we must include maths.hpp
// after we define the CHECK_ macros so the preprocessor can resolve them.
#include "maths.hpp"
#endif // __DEBUG_HPP