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

This commit is contained in:
Marcel Admiraal 2019-10-08 10:17:11 +02:00
parent 98497ff719
commit c2aa3e2351
8 changed files with 8 additions and 1 deletions

View file

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

View file

@ -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"

View file

@ -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:

View file

@ -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

View file

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

View file

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

View file

@ -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) \

View file

@ -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 */