Browse Source

fixed some includes. replace cycle include with forward declaration

Nickolai Korshunov 7 years ago
parent
commit
73a67b16b1
2 changed files with 7 additions and 6 deletions
  1. 5 5
      include/core/Godot.hpp
  2. 2 1
      include/core/Ref.hpp

+ 5 - 5
include/core/Godot.hpp

@@ -8,13 +8,13 @@
 #include <nativescript/godot_nativescript.h>
 
 
-#include <core/CoreTypes.hpp>
-#include <core/Variant.hpp>
-#include <core/Ref.hpp>
+#include "CoreTypes.hpp"
+#include "Variant.hpp"
+#include "Ref.hpp"
 
-#include <Object.hpp>
+#include "Object.hpp"
 
-#include <core/GodotGlobal.hpp>
+#include "GodotGlobal.hpp"
 
 
 namespace godot {

+ 2 - 1
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<T> behavior
 // Rewritten from f5234e70be7dec4930c2d5a0e829ff480d044b1d.