-
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
capi: Access to ExecutionContext members #799
Conversation
Codecov Report
@@ Coverage Diff @@
## master #799 +/- ##
=======================================
Coverage 99.27% 99.27%
=======================================
Files 88 88
Lines 13182 13182
=======================================
Hits 13086 13086
Misses 96 96
Flags with carried forward coverage won't be shown. Click here to find out more. |
5942b59
to
dbb2526
Compare
|
||
void fizzy_free_execution_context(FizzyExecutionContext* ctx) FIZZY_NOEXCEPT; | ||
|
||
int* fizzy_get_execution_context_depth(FizzyExecutionContext* ctx) FIZZY_NOEXCEPT; |
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 this returning int*
look fine, or would _get
/_set
functions be better?
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 sure, need to try in Rust how to interact with that, but we could merge this as a first step anyway.
5960f77
to
704c9fc
Compare
83195ad
to
86268ec
Compare
7095691
to
a26d244
Compare
df42121
to
eba265e
Compare
Rebased. |
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 think this looks good generally, but let's get #626 merged first.
@gumb0 can you rebase? |
FizzyExecutionContext* fizzy_create_execution_context(int depth) FIZZY_NOEXCEPT; | ||
|
||
FizzyExecutionContext* fizzy_create_metered_execution_context( | ||
int depth, int64_t ticks) FIZZY_NOEXCEPT; |
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.
int depth, int64_t ticks) FIZZY_NOEXCEPT; | |
int depth, int64_t max_ticks) FIZZY_NOEXCEPT; |
Perhaps this?
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.
Looks good to me otherwise.
Depends on #626.