Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
51673321
Commit
51673321
authored
Sep 14, 2015
by
Paul Sokolovsky
Browse files
unix/modjni: Return Java null as Python None.
parent
7a4b10cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/modjni.c
View file @
51673321
...
...
@@ -227,7 +227,7 @@ STATIC bool py2jvalue(const char **jtypesig, mp_obj_t arg, jvalue *out) {
#define MATCH(s, static) (!strncmp(s, static, sizeof(static) - 1))
STATIC
mp_obj_t
jvalue2py
(
const
char
*
jtypesig
,
jobject
arg
)
{
mp_obj_t
ret
;
if
(
MATCH
(
jtypesig
,
"void"
))
{
if
(
arg
==
NULL
||
MATCH
(
jtypesig
,
"void"
))
{
return
mp_const_none
;
}
else
if
(
MATCH
(
jtypesig
,
"int"
))
{
return
mp_obj_new_int
((
mp_int_t
)
arg
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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