-
Notifications
You must be signed in to change notification settings - Fork 34
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
rust: add support for imported functions #782
base: master
Are you sure you want to change the base?
Conversation
@@ -617,6 +619,11 @@ FizzyInstance* fizzy_instantiate(const FizzyModule* module, | |||
set_success(error); | |||
return wrap(instance.release()); | |||
} | |||
catch (fizzy::instantiate_error const& e) | |||
{ | |||
std::cout << e.what() << std::endl; |
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.
These was my error reporting prior to us adding proper support 😅
} | ||
} | ||
|
||
fn create_function_import_list( |
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.
Still need to figure out what is the best API defining host functions, but at least this semi-finished translation layer works.
Codecov Report
@@ Coverage Diff @@
## master #782 +/- ##
==========================================
- Coverage 99.27% 98.57% -0.71%
==========================================
Files 88 2 -86
Lines 13296 1053 -12243
==========================================
- Hits 13200 1038 -12162
+ Misses 96 15 -81
Flags with carried forward coverage won't be shown. Click here to find out more. |
aff29d7
to
f38b6ea
Compare
No description provided.