debug: move maths header inc to avoid circular dep
This commit is contained in:
parent
10cb9e2458
commit
169bc5f62b
10
debug.hpp
10
debug.hpp
@ -20,8 +20,7 @@
|
|||||||
#ifndef __DEBUG_HPP
|
#ifndef __DEBUG_HPP
|
||||||
#define __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 <stdexcept>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
@ -269,4 +268,11 @@ namespace debug {
|
|||||||
void init (void);
|
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
|
#endif // __DEBUG_HPP
|
||||||
|
Loading…
Reference in New Issue
Block a user