summaryrefslogtreecommitdiff
path: root/modules/nativescript/nativescript.h
diff options
context:
space:
mode:
authorRuslan Mustakov <r.mustakov@gmail.com>2017-07-26 20:24:15 +0700
committerRuslan Mustakov <r.mustakov@gmail.com>2017-07-26 22:36:57 +0700
commitdb9dcbddbc9231d520a14eaa4e256c276273eeb7 (patch)
tree5f95a7c5c754b611399dd40747c19179c628f88b /modules/nativescript/nativescript.h
parentf55211ae0dc202cc015c247495af8e05af81b24b (diff)
Forward refcount changes to NativeScriptInstance
This also changes Reference::unreference() to always invoke refcount_decremented. Previously it was not invoked until the count reached zero due to short-circuit evalution of boolean expressions.
Diffstat (limited to 'modules/nativescript/nativescript.h')
-rw-r--r--modules/nativescript/nativescript.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/nativescript/nativescript.h b/modules/nativescript/nativescript.h
index bc7a6e3ed6..c2a5eed8bb 100644
--- a/modules/nativescript/nativescript.h
+++ b/modules/nativescript/nativescript.h
@@ -181,6 +181,9 @@ public:
virtual void call_multilevel(const StringName &p_method, const Variant **p_args, int p_argcount);
virtual void call_multilevel_reversed(const StringName &p_method, const Variant **p_args, int p_argcount);
+ virtual void refcount_incremented();
+ virtual bool refcount_decremented();
+
~NativeScriptInstance();
};