Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
ed2885fa
Commit
ed2885fa
authored
May 21, 2024
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webassembly/proxy_c: Don't return value of a void function.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
d7f03139
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ports/webassembly/proxy_c.c
ports/webassembly/proxy_c.c
+6
-6
No files found.
ports/webassembly/proxy_c.c
View file @
ed2885fa
...
...
@@ -210,10 +210,10 @@ void proxy_c_to_js_dir(uint32_t c_ref, uint32_t *out) {
dir
=
mp_builtin_dir_obj
.
fun
.
var
(
1
,
args
);
}
nlr_pop
();
return
proxy_convert_mp_to_js_obj_cside
(
dir
,
out
);
proxy_convert_mp_to_js_obj_cside
(
dir
,
out
);
}
else
{
// uncaught exception
return
proxy_convert_mp_to_js_exc_cside
(
nlr
.
ret_val
,
out
);
proxy_convert_mp_to_js_exc_cside
(
nlr
.
ret_val
,
out
);
}
}
...
...
@@ -255,10 +255,10 @@ void proxy_c_to_js_lookup_attr(uint32_t c_ref, const char *attr_in, uint32_t *ou
member
=
mp_load_attr
(
obj
,
attr
);
}
nlr_pop
();
return
proxy_convert_mp_to_js_obj_cside
(
member
,
out
);
proxy_convert_mp_to_js_obj_cside
(
member
,
out
);
}
else
{
// uncaught exception
return
proxy_convert_mp_to_js_exc_cside
(
nlr
.
ret_val
,
out
);
proxy_convert_mp_to_js_exc_cside
(
nlr
.
ret_val
,
out
);
}
}
...
...
@@ -482,9 +482,9 @@ void proxy_c_to_js_resume(uint32_t c_ref, uint32_t *args) {
mp_obj_t
reject
=
proxy_convert_js_to_mp_obj_cside
(
args
+
2
*
3
);
mp_obj_t
ret
=
proxy_resume_execute
(
obj
,
mp_const_none
,
mp_const_none
,
resolve
,
reject
);
nlr_pop
();
return
proxy_convert_mp_to_js_obj_cside
(
ret
,
args
);
proxy_convert_mp_to_js_obj_cside
(
ret
,
args
);
}
else
{
// uncaught exception
return
proxy_convert_mp_to_js_exc_cside
(
nlr
.
ret_val
,
args
);
proxy_convert_mp_to_js_exc_cside
(
nlr
.
ret_val
,
args
);
}
}
Write
Preview
Markdown
is supported
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