Update documentation

This commit is contained in:
2025-08-31 00:34:08 -07:00
parent d78cf29765
commit 4efdcc97ae
4 changed files with 89 additions and 33 deletions

View File

@ -178,7 +178,7 @@ static inline void refcount_context_unref_as_callback(void *obj, void *ctx) {
}
void *refcount_context_float(RefcountContext *ctx, void *obj);
bool refcount_context_garbage_collect(RefcountContext *ctx);
ptrdiff_t refcount_context_garbage_collect(RefcountContext *ctx);
/**
* Same as #refcount_context_is_static, but only operates on the global
@ -267,9 +267,9 @@ static inline void *refcount_float(void *obj) {
/**
* Same as #refcount_context_garbage_collect, but only operates on the globa
* context.
* @return False if an error occured, true otherwise
* @return The number of object's freed, or -1 if an error occurred
*/
static inline bool refcount_garbage_collect(void) {
static inline ptrdiff_t refcount_garbage_collect(void) {
return refcount_context_garbage_collect(refcount_default_context);
}