def map_type(self, fn_arg, print_void, ret_arr_len, is_free, holds_ref):
ty_info = self.java_c_types(fn_arg, ret_arr_len)
- return self.map_type_with_info(ty_info, print_void, ret_arr_len, is_free, holds_ref)
+ mapped_info = self.map_type_with_info(ty_info, print_void, ret_arr_len, is_free, holds_ref)
+ return mapped_info
def map_type_with_info(self, ty_info, print_void, ret_arr_len, is_free, holds_ref):
if ty_info.c_ty == "void":
self.c_fn_args_pfx = "void* ctx_TODO"
self.file_ext = ".ts"
self.ptr_c_ty = "uint32_t"
- self.ptr_native_ty = "uint32_t"
+ self.ptr_native_ty = "number" # "uint32_t"
self.result_c_ty = "uint32_t"
self.ptr_arr = "uint32_tArray"
self.get_native_arr_len_call = ("", ".len")