Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
02041bf2
Commit
02041bf2
authored
Oct 09, 2015
by
Paul Sokolovsky
Browse files
unix/modjni: jvalue2py() is currently not used.
Not remove so far, may be needed later.
parent
216b6a49
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/modjni.c
View file @
02041bf2
...
...
@@ -39,6 +39,7 @@
#define JJ(call, ...) (*env)->call(env, __VA_ARGS__)
#define JJ1(call) (*env)->call(env)
#define MATCH(s, static) (!strncmp(s, static, sizeof(static) - 1))
static
JavaVM
*
jvm
;
static
JNIEnv
*
env
;
...
...
@@ -359,11 +360,11 @@ STATIC bool py2jvalue(const char **jtypesig, mp_obj_t arg, jvalue *out) {
return
true
;
}
#if 0
// jvalue is known to be union of jobject and friends. And yet from C's
// perspective, it's aggregate object which may require passing via stack
// instead of registers. Work that around by passing jobject and typecasting
// it.
#define MATCH(s, static) (!strncmp(s, static, sizeof(static) - 1))
STATIC mp_obj_t jvalue2py(const char *jtypesig, jobject arg) {
if (arg == NULL || MATCH(jtypesig, "void")) {
return mp_const_none;
...
...
@@ -380,6 +381,7 @@ STATIC mp_obj_t jvalue2py(const char *jtypesig, jobject arg) {
return MP_OBJ_NULL;
}
#endif
STATIC
mp_obj_t
call_method
(
jobject
obj
,
const
char
*
name
,
jarray
methods
,
bool
is_constr
,
mp_uint_t
n_args
,
const
mp_obj_t
*
args
)
{
jvalue
jargs
[
n_args
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment