-
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
Pass arguments to host function as const Value* #574
Conversation
51e41db
to
1f6f4d0
Compare
Codecov Report
@@ Coverage Diff @@
## master #574 +/- ##
=======================================
Coverage 98.26% 98.26%
=======================================
Files 63 63
Lines 9254 9238 -16
=======================================
- Hits 9093 9078 -15
+ Misses 161 160 -1 |
1f6f4d0
to
0d60aca
Compare
0d60aca
to
626ac4a
Compare
|
The |
@@ -486,7 +486,7 @@ inline bool invoke_function( | |||
{ | |||
const auto num_args = func_type.inputs.size(); | |||
assert(stack.size() >= num_args); | |||
span<const Value> call_args{stack.rend() - num_args, num_args}; | |||
const auto call_args = stack.rend() - num_args; |
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.
Didn't I do the same change in some PR already? Perhaps one of your old refactorings.
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.
I'd wait for @gumb0's review too.
lib/fizzy/capi.cpp
Outdated
int depth) noexcept -> fizzy::ExecutionResult { | ||
const auto result = func(context, wrap(&instance), wrap(args.data()), args.size(), depth); | ||
const auto result = func(context, wrap(&instance), wrap(args), 0, depth); |
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 should be fixed, now or later.
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.
Pushed the fix.
02d85c1
to
cb1efa6
Compare
cb1efa6
to
2a22c03
Compare
No description provided.