-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fixes for native module support #6014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,7 +145,7 @@ typedef struct _mp_fun_table_t { | |
| #if defined(__GNUC__) | ||
| NORETURN // Only certain compilers support no-return attributes in function pointer declarations | ||
| #endif | ||
| void (*raise_msg_str)(const mp_obj_type_t *exc_type, const char *msg); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does raising exceptions from a native module actually work with these changes? I expect that it doesn't, because there's no way for the string to be entered in the list of translations that is baked into the core, and the |
||
| void (*raise_msg)(const mp_obj_type_t *exc_type, const compressed_string_t *); | ||
| const mp_obj_type_t *(*obj_get_type)(mp_const_obj_t o_in); | ||
| mp_obj_t (*obj_new_str)(const char *data, size_t len); | ||
| mp_obj_t (*obj_new_bytes)(const byte *data, size_t len); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is probably correct for us. It looks like this is an incorrect trace of my work to split type objects into a main part and an optional part; the 'parent' field ended up in the main part, but this code was to help adapt for the case that it was in the optional part.