aboutsummaryrefslogtreecommitdiff
path: root/core/reference.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-04-18 19:06:58 -0300
committerJuan Linietsky2015-04-18 19:06:58 -0300
commitb66b86b05eca3b557700d0249fc3874099056638 (patch)
tree7eb6b8af3b80f5cc5d1535b24746f662f09f1d99 /core/reference.cpp
parent701335e845166acb2a386778a70476ee57f33919 (diff)
downloadgodot-b66b86b05eca3b557700d0249fc3874099056638.tar.gz
godot-b66b86b05eca3b557700d0249fc3874099056638.tar.zst
godot-b66b86b05eca3b557700d0249fc3874099056638.zip
Diffstat (limited to 'core/reference.cpp')
-rw-r--r--core/reference.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/reference.cpp b/core/reference.cpp
index adae07ce3..509e132b5 100644
--- a/core/reference.cpp
+++ b/core/reference.cpp
@@ -59,6 +59,10 @@ void Reference::_bind_methods() {
ObjectTypeDB::bind_method(_MD("unreference"),&Reference::unreference);
}
+int Reference::reference_get_count() const {
+ return refcount.get();
+}
+
void Reference::reference(){
refcount.ref();