@@ -61,19 +61,22 @@ struct callstack {
6161/**
6262 * @brief Creates a callstack of the calling function.
6363 *
64- * The backtrace of the calling function is created.
65- * The struct is allocated and needs to be freed using the function `callstack_delete(struct callstack *)`.
66- * Returns `NULL` if an error occurs.
64+ * The backtrace of the calling function is created.<br>
65+ * The returned structure is allocated and needs to be freed using the function
66+ * @code callstack_delete(struct callstack *)@endcode.<br>
67+ * Returns @c NULL if an error occurs.
6768 *
6869 * @return A newly allocated callstack object.
6970 */
7071struct callstack * callstack_new (void );
7172
7273/**
73- * @brief Creates a new callstack object, ignoring all frames after the given address.
74+ * @brief Creates a new callstack object, ignoring all frames after the given
75+ * address.
7476 *
75- * The struct is allocated and needs to be freed using the function `callstack_delete(struct callstack *)`.
76- * Returns `NULL` if an error occurs.
77+ * The returned structure is allocated and needs to be freed using the function
78+ * @code callstack_delete(struct callstack *)@endcode.<br>
79+ * Returns @c NULL if an error occurs.
7780 *
7881 * @param address The stack address after which frames are ignored.
7982 * @return A newly allocated callstack object.
@@ -83,10 +86,12 @@ struct callstack * callstack_newWithAddress(void * address);
8386/**
8487 * @brief Constructs the given callstack object.
8588 *
86- * Stores the backtrace of the calling function.
87- * The callstack object needs to be destructed using the function `callstack_destroy(struct callstack *)`
88- * upon successful construction and use.
89- * If an error occurs during the initialization of the given callstack object, `false` is returned.
89+ * Stores the backtrace of the calling function.<br>
90+ * The callstack object needs to be destructed using the function
91+ * @code callstack_destroy(struct callstack *)@endcode upon successful
92+ * construction and use.<br>
93+ * If an error occurs during the initialization of the given callstack object,
94+ * @c false is returned.
9095 *
9196 * @param self A pointer to the callstack object to be constructed.
9297 * @return Whether the given callstack object was constructed successfully.
@@ -96,9 +101,11 @@ bool callstack_emplace(struct callstack * self);
96101/**
97102 * @brief Constructs the given callstack object.
98103 *
99- * Stores the backtrace of the calling function, ignoring all frames after the given address.
100- * The callstack object needs to be destructed using the function `callstack_destroy(struct callstack *)`
101- * upon successful construction and use.
104+ * Stores the backtrace of the calling function, ignoring all frames after the
105+ * given address.<br>
106+ * The callstack object needs to be destructed using the function
107+ * @code callstack_destroy(struct callstack *)@endcode upon successful
108+ * construction and use.
102109 *
103110 * @param self A pointer to the callstack object to be constructed.
104111 * @param address The stack address after which frames are ignored.
@@ -109,12 +116,12 @@ bool callstack_emplaceWithAddress(struct callstack * self, void * address);
109116/**
110117 * @brief Constructs the given callstack object.
111118 *
112- * Copies the given callstack into the given object. If the trace is longer than
113- * ` CALLSTACK_BACKTRACE_SIZE` , only the first addresses are copied.
114- * The callstack object needs to be destructed using the function `callstack_destroy(struct callstack *)`
115- * after use.
116- * If the given trace length is smaller than zero, ` false` is returned and the given callstack
117- * is not modified.
119+ * Copies the given callstack into the given object. If the trace is longer
120+ * than @c CALLSTACK_BACKTRACE_SIZE, only the first addresses are copied.<br>
121+ * The callstack object needs to be destructed using the function
122+ * @code callstack_destroy(struct callstack *)@endcode after use.<br>
123+ * If the given trace length is smaller than zero, @c false is returned and the
124+ * given callstack is not modified.
118125 *
119126 * @param self A pointer to the callstack object to be constructed.
120127 * @param trace The backtrace to be copied.
@@ -129,16 +136,16 @@ bool callstack_emplaceWithBacktrace(struct callstack * self,
129136 *
130137 * The given callstack is destroyed before the contents of the other one are copied.
131138 *
132- * @param self A pointer to the the callstack to be replaced.
139+ * @param self A pointer to the callstack to be replaced.
133140 * @param other The callstack object to be copied.
134141 */
135142void callstack_copy (struct callstack * self , const struct callstack * other );
136143
137144/**
138145 * @brief Translates the given callstack and returns an array of the translated frames.
139146 *
140- * Returns ` NULL` if an error happens.
141- * Since version ` 1.1` a ` callstack_frame` array is returned.
147+ * Returns @c NULL if an error happens.<br>
148+ * Since version @c 1.1 a @c callstack_frame array is returned.
142149 *
143150 * @param self The callstack object.
144151 * @return An array of translated callstack frames.
@@ -148,10 +155,10 @@ struct callstack_frame * callstack_toArray(struct callstack * self);
148155/**
149156 * @brief Translates the given callstack and returns an array of the translated frames.
150157 *
151- * If the given callstack has not been translated before, only the binary file information
152- * is deducted.
153- *
154- * Returns ` NULL` if an error happens.
158+ * If the given callstack has not been translated before, only the binary file
159+ * information is deducted.
160+ * <br><br>
161+ * Returns @c NULL if an error happens.
155162 *
156163 * @param self The callstack object.
157164 * @return An array of translated callstack frames.
@@ -163,14 +170,15 @@ struct callstack_frame * callstack_getBinaries(struct callstack * self);
163170/**
164171 * @brief Translates the given callstack and returns an array of the translated frames.
165172 *
166- * If the given has not been translated before, only the binary file information
167- * is deducted.
168- *
169- * The deducted binary information is located in the cache of the library and becomes
170- * invalid after a call to `callstack_clearCaches()` or after the callstack has
171- * been translated entirely if `callstack_autoClearCaches` is `true`.
173+ * If the given has not been translated before, only the binary file
174+ * information is deducted.
172175 *
173- * Returns `NULL` if an error happens.
176+ * The deducted binary information is located in the cache of the library and
177+ * becomes invalid after a call to @c callstack_clearCaches() or after the
178+ * callstack has been translated entirely if @c callstack_autoClearCaches is
179+ * @c true .
180+ * <br><br>
181+ * Returns @c NULL if an error happens.
174182 *
175183 * @param self the callstack object
176184 * @return an array of translated callstack frames
0 commit comments