diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-20 16:34:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-20 16:34:38 +0200 |
commit | f6c39830cb7cf0d664bdfa25642b333a1249b96f (patch) | |
tree | a0680c8e296995618a613c03bb16b0d829b04184 /core | |
parent | 9720e94dce358391ec532cbc1ba379b2fcf571a4 (diff) | |
parent | af4c4397dff5672da42f93e80426a855135b3e28 (diff) |
Merge pull request #10481 from neikeq/water-store-remark
Fixes Ref's GetTypeInfo missing with ptrcall disabled
Diffstat (limited to 'core')
-rw-r--r-- | core/reference.h | 7 |
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 |