-
Notifications
You must be signed in to change notification settings - Fork 38
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
capi: resolve imported globals #660
Conversation
Codecov Report
@@ Coverage Diff @@
## master #660 +/- ##
==========================================
- Coverage 99.31% 99.31% -0.01%
==========================================
Files 72 72
Lines 10541 10619 +78
==========================================
+ Hits 10469 10546 +77
- Misses 72 73 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
222bf52
to
cc64cc2
Compare
874b9ba
to
5a8e3a0
Compare
cc64cc2
to
05c36be
Compare
lib/fizzy/capi.cpp
Outdated
{ | ||
fizzy::ImportedGlobal imported_global; | ||
imported_global.module = | ||
c_imported_global.module ? std::string{c_imported_global.module} : std::string{}; |
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.
The c_imported_global.module
cannot be null.
05c36be
to
5838d7f
Compare
Is this a replacement of #637? |
29b4829
to
14e1a39
Compare
b2f422a
to
e736eab
Compare
73938d1
to
570e8ef
Compare
ebaebdb
to
00aeaa4
Compare
/// No validation is done on the number of globals passed in, nor on their order. | ||
/// When number of passed globals or their order is different from the one defined by the | ||
/// module, behaviour is undefined. | ||
/// Globals in @a imported_globals are allowed to be in any order and allowed to include some |
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.
Are we using #imported_globals
now? Or not for arguments?
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.
Not for arguments, I think I tried it already #681 (comment)
/// No validation is done on the number of globals passed in, nor on their order. | ||
/// When number of passed globals or their order is different from the one defined by the | ||
/// module, behaviour is undefined. | ||
/// Globals in @a imported_globals are allowed to be in any order and allowed to include some |
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.
Does the of lifetime module
/name
needs to be only valid during fizzy_resolve_instantiate
?
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.
Added a note.
test/unittests/capi_test.cpp
Outdated
FizzyValue result_f32; | ||
result_f32.f32 = 42; |
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.
Ugh.
7401844
to
436a6cf
Compare
e57cf00
to
1d6067a
Compare
1d6067a
to
45e5422
Compare
Wasn't the last commit merged already? |
It's base was this PR, so you merged it here. |
Oh, sorry for that! |
Recreated it in #701. |
45e5422
to
a030f51
Compare
Depends on #637.