diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-09-19 01:04:41 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-09-19 01:05:25 +0300 |
commit | 1e9d8e110b56b0771eddffb636f99f76407782aa (patch) | |
tree | 3e6cd018a520b2bdf63195ed0484423d636e7ea8 /unix/modjni.c | |
parent | b0c08c8c173cbfe66ad78af55f4025543bbdbd9b (diff) | |
download | micropython-1e9d8e110b56b0771eddffb636f99f76407782aa.tar.gz micropython-1e9d8e110b56b0771eddffb636f99f76407782aa.zip |
unix/modjni: py2jvalue: Pass jobject's down to Java.
So far, no signature check is done (TODO).
Diffstat (limited to 'unix/modjni.c')
-rw-r--r-- | unix/modjni.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/modjni.c b/unix/modjni.c index 929a0131f1..7017942564 100644 --- a/unix/modjni.c +++ b/unix/modjni.c @@ -224,6 +224,10 @@ STATIC bool py2jvalue(const char **jtypesig, mp_obj_t arg, jvalue *out) { } else { 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 { nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "arg type not supported")); } |