Browse Source

Remove circular include between core/typedefs.h and core/error_macros.h

Marcel Admiraal 5 years ago
parent
commit
c2aa3e2351
8 changed files with 8 additions and 1 deletions
  1. 1 0
      core/cowdata.h
  2. 1 0
      core/list.h
  3. 1 0
      core/map.h
  4. 2 0
      core/math/math_funcs.cpp
  5. 1 0
      core/os/memory.h
  6. 1 0
      core/self_list.h
  7. 1 0
      core/sort_array.h
  8. 0 1
      core/typedefs.h

+ 1 - 0
core/cowdata.h

@@ -33,6 +33,7 @@
 
 #include <string.h>
 
+#include "core/error_macros.h"
 #include "core/os/memory.h"
 #include "core/safe_refcount.h"
 

+ 1 - 0
core/list.h

@@ -31,6 +31,7 @@
 #ifndef GLOBALS_LIST_H
 #define GLOBALS_LIST_H
 
+#include "core/error_macros.h"
 #include "core/os/memory.h"
 #include "core/sort_array.h"
 

+ 1 - 0
core/map.h

@@ -31,6 +31,7 @@
 #ifndef MAP_H
 #define MAP_H
 
+#include "core/error_macros.h"
 #include "core/set.h"
 
 // based on the very nice implementation of rb-trees by:

+ 2 - 0
core/math/math_funcs.cpp

@@ -30,6 +30,8 @@
 
 #include "math_funcs.h"
 
+#include "core/error_macros.h"
+
 RandomPCG Math::default_rand(RandomPCG::DEFAULT_SEED, RandomPCG::DEFAULT_INC);
 
 #define PHI 0x9e3779b9

+ 1 - 0
core/os/memory.h

@@ -31,6 +31,7 @@
 #ifndef MEMORY_H
 #define MEMORY_H
 
+#include "core/error_macros.h"
 #include "core/safe_refcount.h"
 
 #include <stddef.h>

+ 1 - 0
core/self_list.h

@@ -31,6 +31,7 @@
 #ifndef SELF_LIST_H
 #define SELF_LIST_H
 
+#include "core/error_macros.h"
 #include "core/typedefs.h"
 
 template <class T>

+ 1 - 0
core/sort_array.h

@@ -31,6 +31,7 @@
 #ifndef SORT_ARRAY_H
 #define SORT_ARRAY_H
 
+#include "core/error_macros.h"
 #include "core/typedefs.h"
 
 #define ERR_BAD_COMPARE(cond)                                         \

+ 0 - 1
core/typedefs.h

@@ -108,7 +108,6 @@ T *_nullptr() {
 #include "core/int_types.h"
 
 #include "core/error_list.h"
-#include "core/error_macros.h"
 
 /** Generic ABS function, for math uses please use Math::abs */