diff options
| author | Nickolai Korshunov <n.a.korshunov@gmail.com> | 2018-02-23 14:56:36 +0300 |
|---|---|---|
| committer | Nickolai Korshunov <n.a.korshunov@gmail.com> | 2018-02-23 14:56:36 +0300 |
| commit | 73a67b16b1904b3cfaa8c1f1f9891cd9d416cb43 (patch) | |
| tree | 39e0b018f6db27b4dd621f1f8a6be3bdf037e31a /include/core | |
| parent | 7adae4673c7c351501e20d60b7158bec37c97783 (diff) | |
| download | redot-cpp-73a67b16b1904b3cfaa8c1f1f9891cd9d416cb43.tar.gz | |
fixed some includes. replace cycle include with forward declaration
Diffstat (limited to 'include/core')
| -rw-r--r-- | include/core/Godot.hpp | 10 | ||||
| -rw-r--r-- | 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 6d0289f..e84f88a 100644 --- a/include/core/Godot.hpp +++ b/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 { diff --git a/include/core/Ref.hpp b/include/core/Ref.hpp index f81dbbe..d96c9de 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<T> behavior // Rewritten from f5234e70be7dec4930c2d5a0e829ff480d044b1d. |
