summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/Godot.hpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-04-05 17:16:47 +0200
committerKarroffel <therzog@mail.de>2017-04-05 17:16:47 +0200
commit63c2b9d474784447d01cb4c90aabdfd3ab5e373c (patch)
treec17e2ae64d466c1bd21c580672ffc20f580a87f2 /include/godot_cpp/Godot.hpp
parent8aaef5a6a272750683328ba12d4dd84897e41fe5 (diff)
downloadredot-cpp-63c2b9d474784447d01cb4c90aabdfd3ab5e373c.tar.gz
new macros for entry points, virtual method fix
Diffstat (limited to 'include/godot_cpp/Godot.hpp')
-rw-r--r--include/godot_cpp/Godot.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/godot_cpp/Godot.hpp b/include/godot_cpp/Godot.hpp
index e2a9fe1..80715b8 100644
--- a/include/godot_cpp/Godot.hpp
+++ b/include/godot_cpp/Godot.hpp
@@ -12,6 +12,20 @@
namespace godot {
+
+
+#if !defined(_WIN32)
+#define GD_EXPORT
+#else
+#define GD_EXPORT __declspec(dllexport)
+#endif
+
+
+#define GODOT_DLSCRIPT_INIT(arg) extern "C" void GD_EXPORT godot_dlscript_init(arg)
+#define GODOT_DLSCRIPT_TERMINATE(arg) extern "C" void GD_EXPORT godot_dlscript_terminate(arg)
+
+
+
#define GODOT_CLASS(Name, Base) \
public: inline static char *___get_type_name() { return (char *) #Name; } \
inline static char *___get_base_type_name() { return (char *) #Base; } \