We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3928943 commit 2a3852bCopy full SHA for 2a3852b
util/godot/core/gdvirtual.h
@@ -2,8 +2,16 @@
2
#define ZN_GODOT_GDVIRTUAL_H
3
4
#if defined(ZN_GODOT)
5
-#include <core/object/script_language.h> // needed for GDVIRTUAL macro
6
-#include <core/object/gdvirtual.gen.inc> // Also needed for GDVIRTUAL macro...
+#include "../core/version.h"
+
7
+#include <core/object/script_language.h>
8
9
+#if GODOT_VERSION_MAJOR == 4 && GODOT_VERSION_MINOR <= 6
10
+#include <core/object/gdvirtual.gen.inc>
11
+#else
12
+#include <core/object/gdvirtual.gen.h>
13
+#endif
14
15
#elif defined(ZN_GODOT_EXTENSION)
16
#include <godot_cpp/core/gdvirtual.gen.inc>
17
#endif
0 commit comments