-
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: Cleanup in fizzy.h comments #681
Conversation
Codecov Report
@@ Coverage Diff @@
## master #681 +/- ##
=======================================
Coverage 99.31% 99.31%
=======================================
Files 72 72
Lines 10257 10257
=======================================
Hits 10187 10187
Misses 70 70
Flags with carried forward coverage won't be shown. Click here to find out more. |
f6831cd
to
1851730
Compare
include/fizzy/fizzy.h
Outdated
@@ -33,10 +33,10 @@ typedef struct FizzyExecutionResult | |||
/// Whether execution ended with a trap. | |||
bool trapped; | |||
/// Whether function returned a value. | |||
/// Equals false if trapped equals true. | |||
/// Equals false if `trapped` equals true. |
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.
/// Equals false if `trapped` equals true. | |
/// Equals false if #trapped equals true. |
I'm not sure that the goal is here, but you can reference the class variable like this. See https://www.doxygen.nl/manual/autolink.html.
1851730
to
11672a2
Compare
I changed backticks to proper links, as Pawel suggested, please take a look. I'll squash two last commits. |
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 guess some doxygen CI build would be welcomed to see the changes.
include/fizzy/fizzy.h
Outdated
@@ -19,7 +19,7 @@ typedef struct FizzyInstance FizzyInstance; | |||
|
|||
/// The data type representing numeric values. | |||
/// | |||
/// i64 member is used to represent values of both i32 and i64 type. | |||
/// The `i64` member is used to represent values of both i32 and i64 type. |
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 `i64` member is used to represent values of both i32 and i64 type. | |
/// The #i64 member is used to represent values of both i32 and i64 type. |
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 didn't work when I tried it locally
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.
Works for me provided the i64
is itself documented.
include/fizzy/fizzy.h
Outdated
/// @param module Pointer to module. If NULL is passed, function has no effect. | ||
/// | ||
/// @note | ||
/// Should be called unless @p module was passed to ::fizzy_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.
/// Should be called unless @p module was passed to ::fizzy_instantiate. | |
/// Should be called unless @p module was passed to fizzy_instantiate(). |
include/fizzy/fizzy.h
Outdated
/// functions querying module info can still be called with @p module. | ||
/// For simplicity a module cannot be shared among several instances (calling ::fizzy_instatiate | ||
/// more than once with the same module results in undefined behaviour), but after | ||
/// ::fizzy_instantiate functions querying module info can still be called with @p module. |
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.
/// ::fizzy_instantiate functions querying module info can still be called with @p module. | |
/// fizzy_instantiate() functions querying module info can still be called with @p module. |
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 okay to me. The last two commits could be merged. Also is @p argname
still prefererd or there's some other shorter notation based on this linking feature?
11672a2
to
a708591
Compare
a708591
to
5a1eed3
Compare
Changed remaining backticks to links, changed |
Looks like |
5a1eed3
to
078e7f0
Compare
078e7f0
to
70f31e0
Compare
No description provided.