unix/modjni: py2jvalue: Pass jobject's down to Java.
So far, no signature check is done (TODO).
This commit is contained in:
parent
b0c08c8c17
commit
1e9d8e110b
@ -224,6 +224,10 @@ STATIC bool py2jvalue(const char **jtypesig, mp_obj_t arg, jvalue *out) {
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} else if (type == &jobject_type) {
|
||||||
|
printf("TODO: Check java arg type!!\n");
|
||||||
|
mp_obj_jobject_t *jo = arg;
|
||||||
|
out->l = jo->obj;
|
||||||
} else {
|
} else {
|
||||||
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "arg type not supported"));
|
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "arg type not supported"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user