summaryrefslogtreecommitdiff
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-11 08:53:31 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-11 08:54:17 -0300
commite6583117df95373cffb12105de82d3816ca09f85 (patch)
tree9953c32a4b50db9cc99d0999c7904a27748a0ace /core/variant_call.cpp
parent57166cd2923cc6d32b37c34f6ca2f32f6941e4a8 (diff)
Both Array and Dictionary are always in shared mode (removed copy on write).
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 9a61dd73df..0c8b40539d 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -489,7 +489,7 @@ static void _call_##m_type##_##m_method(Variant& r_ret,Variant& p_self,const Var
VCALL_LOCALMEM0(Array,sort);
VCALL_LOCALMEM2(Array,sort_custom);
VCALL_LOCALMEM0(Array,invert);
- VCALL_LOCALMEM0R(Array,is_shared);
+
static void _call_PoolByteArray_get_string_from_ascii(Variant& r_ret,Variant& p_self,const Variant** p_args) {
@@ -1588,7 +1588,7 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl
ADDFUNC0(ARRAY,NIL,Array,sort,varray());
ADDFUNC2(ARRAY,NIL,Array,sort_custom,OBJECT,"obj",STRING,"func",varray());
ADDFUNC0(ARRAY,NIL,Array,invert,varray());
- ADDFUNC0(ARRAY,BOOL,Array,is_shared,varray());
+
ADDFUNC0(POOL_BYTE_ARRAY,INT,PoolByteArray,size,varray());
ADDFUNC2(POOL_BYTE_ARRAY,NIL,PoolByteArray,set,INT,"idx",INT,"byte",varray());