From 73a67b16b1904b3cfaa8c1f1f9891cd9d416cb43 Mon Sep 17 00:00:00 2001 From: Nickolai Korshunov Date: Fri, 23 Feb 2018 14:56:36 +0300 Subject: [PATCH] fixed some includes. replace cycle include with forward declaration --- include/core/Godot.hpp | 10 +++++----- include/core/Ref.hpp | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/core/Godot.hpp b/include/core/Godot.hpp index 6d0289f6..e84f88a9 100644 --- a/include/core/Godot.hpp +++ b/include/core/Godot.hpp @@ -8,13 +8,13 @@ #include -#include -#include -#include +#include "CoreTypes.hpp" +#include "Variant.hpp" +#include "Ref.hpp" -#include +#include "Object.hpp" -#include +#include "GodotGlobal.hpp" namespace godot { diff --git a/include/core/Ref.hpp b/include/core/Ref.hpp index f81dbbeb..d96c9de3 100644 --- a/include/core/Ref.hpp +++ b/include/core/Ref.hpp @@ -3,9 +3,10 @@ #include "Variant.hpp" #include "GodotGlobal.hpp" -#include "../Reference.hpp" namespace godot { +class Reference; +class Object; // Replicates Godot's Ref behavior // Rewritten from f5234e70be7dec4930c2d5a0e829ff480d044b1d.