summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2017-08-20 14:28:22 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2017-08-20 14:28:22 +0200
commitaf4c4397dff5672da42f93e80426a855135b3e28 (patch)
tree39e6fc6ff29cd2f127c189d88de38f57cff44ba1
parent7e5890d23d882547ae465fb7756b74be5bc1f62b (diff)
Fixes Ref's GetTypeInfo missing with ptrcall disabled
-rw-r--r--core/reference.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/reference.h b/core/reference.h
index 7f48f8323e..69250a4701 100644
--- a/core/reference.h
+++ b/core/reference.h
@@ -374,6 +374,10 @@ struct PtrToArg<const RefPtr &> {
}
};
+#endif // PTRCALL_ENABLED
+
+#ifdef DEBUG_METHODS_ENABLED
+
template <class T>
struct GetTypeInfo<Ref<T> > {
enum { VARIANT_TYPE = Variant::OBJECT };
@@ -392,5 +396,6 @@ struct GetTypeInfo<const Ref<T> &> {
}
};
-#endif
+#endif // DEBUG_METHODS_ENABLED
+
#endif // REFERENCE_H