MCPcopy Create free account
hub / github.com/defold/defold / has_array

Function has_array

engine/jni/scripts/gen_java.py:721–729  ·  view source on GitHub ↗
(fields, namespace, name)

Source from the content-addressed store, hash-verified

719 return field
720
721def has_array(fields, namespace, name):
722 for field in fields:
723 field_name = check_override(field['name'])
724 if field_name == name:
725 field_type = field['type']
726 field_type = field_type.replace(f"{namespace}::", '')
727 if is_prim_ptr(field_type) or is_struct_ptr(field_type):
728 return True
729 return False
730
731# Generate create functions for the types
732def gen_to_jni_create_object(decl, namespace, class_name, package_name, header=False):

Callers 5

gen_structFunction · 0.85
gen_jni_structFunction · 0.85
gen_jni_type_initFunction · 0.85
gen_to_jni_create_objectFunction · 0.85

Calls 4

check_overrideFunction · 0.85
is_prim_ptrFunction · 0.85
is_struct_ptrFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected