summaryrefslogtreecommitdiff
path: root/core/script_language.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/script_language.h')
-rw-r--r--core/script_language.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/script_language.h b/core/script_language.h
index ceaa862463..bde4d619ab 100644
--- a/core/script_language.h
+++ b/core/script_language.h
@@ -129,6 +129,10 @@ public:
virtual void notification(int p_notification)=0;
+ //this is used by script languages that keep a reference counter of their own
+ //you can make make Ref<> not die when it reaches zero, so deleting the reference
+ //depends entirely from the script
+
virtual void refcount_incremented() {}
virtual bool refcount_decremented() { return true; } //return true if it can die