-
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: Clarify comments #635
Conversation
Codecov Report
@@ Coverage Diff @@
## master #635 +/- ##
=======================================
Coverage 98.36% 98.36%
=======================================
Files 69 69
Lines 9622 9622
=======================================
Hits 9465 9465
Misses 157 157 |
include/fizzy/fizzy.h
Outdated
/// Takes ownership of module, i.e. @p module is invalidated after this call. | ||
/// Takes ownership of module, i.e. fizzy_free_module must not be called after this call. | ||
/// For simplicity module cannot be shared among several instances (calling fizzy_instatiate more | ||
/// than once with the same module is not allowed), but after fizzy_instantiate functions querying |
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.
"is not allowed" -> "results in undefined behaviour" ?
include/fizzy/fizzy.h
Outdated
/// Takes ownership of module, i.e. @p module is invalidated after this call. | ||
/// Takes ownership of module, i.e. fizzy_free_module must not be called after this call. | ||
/// For simplicity module cannot be shared among several instances (calling fizzy_instatiate more | ||
/// than once with the same module is not allowed), but after fizzy_instantiate functions querying |
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.
Same here?
include/fizzy/fizzy.h
Outdated
@@ -165,7 +165,10 @@ bool fizzy_find_exported_function( | |||
const FizzyModule* module, const char* name, uint32_t* out_func_idx); | |||
|
|||
/// Instantiate a module. | |||
/// Takes ownership of module, i.e. @p module is invalidated after this call. | |||
/// Takes ownership of module, i.e. fizzy_free_module must not be called after this call. |
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.
/// Takes ownership of module, i.e. fizzy_free_module must not be called after this call. | |
/// The instance takes ownership of the module, i.e. fizzy_free_module must not be called on the module after this call. |
include/fizzy/fizzy.h
Outdated
@@ -165,7 +165,10 @@ bool fizzy_find_exported_function( | |||
const FizzyModule* module, const char* name, uint32_t* out_func_idx); | |||
|
|||
/// Instantiate a module. | |||
/// Takes ownership of module, i.e. @p module is invalidated after this call. | |||
/// Takes ownership of module, i.e. fizzy_free_module must not be called after this call. | |||
/// For simplicity module cannot be shared among several instances (calling fizzy_instatiate more |
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.
/// For simplicity module cannot be shared among several instances (calling fizzy_instatiate more | |
/// For simplicity a module cannot be shared among several instances (calling fizzy_instatiate more |
Squashed. |
No description provided.