-
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
C API Find exported global by name #627
Conversation
Codecov Report
@@ Coverage Diff @@
## master #627 +/- ##
=======================================
Coverage 98.32% 98.33%
=======================================
Files 67 67
Lines 9493 9535 +42
=======================================
+ Hits 9334 9376 +42
Misses 159 159 |
4f6d0ca
to
180b52b
Compare
180b52b
to
b931896
Compare
/// | ||
/// @param instance Pointer to instance. | ||
/// @param name The global name. NULL-terminated string. Cannot be NULL. | ||
/// @param out_global Pointer to output struct to store found global. Cannot be NULL. |
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 there any better best practice than prefixing it with out_
?
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'm not aware of any.
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.
In most case we can come up with a sentinel values. E.g. here you can have
FizzyExternalGlobal fizzy_find_exported_global(
FizzyInstance* instance, const char* name);
And then "not-found" can be represented by FizzyExternalGlobal{nullptr, FizzyValueTypeVoid}
.
b931896
to
ab47066
Compare
No description provided.