diff options
Diffstat (limited to 'include/asterisk/utils.h')
-rw-r--r-- | include/asterisk/utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index a417cf4d3..014a62ec5 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -858,7 +858,6 @@ int ast_eid_cmp(const struct ast_eid *eid1, const struct ast_eid *eid2); /*! * \brief Get current thread ID - * \param None * \return the ID if platform is supported, else -1 */ int ast_get_tid(void); @@ -897,12 +896,14 @@ char *ast_utils_which(const char *binary, char *fullpath, size_t fullpath_size); * RAII_VAR(struct mything *, thing, mything_alloc(name), mything_cleanup); * ... * } + * \endcode * * \note This macro is especially useful for working with ao2 objects. A common idiom * would be a function that needed to look up an ao2 object and might have several error * conditions after the allocation that would normally need to unref the ao2 object. * With RAII_VAR, it is possible to just return and leave the cleanup to the destructor * function. For example: + * * \code * void do_stuff(const char *name) * { @@ -915,7 +916,7 @@ char *ast_utils_which(const char *binary, char *fullpath, size_t fullpath_size); * } * do_stuff_with_thing(thing); * } - * \encode + * \endcode */ #define RAII_VAR(vartype, varname, initval, dtor) \ auto void _dtor_ ## varname (vartype * v); \ |