src/cx/allocator.h

changeset 526
b070ef465313
parent 508
8aea65ae1eaf
child 528
4fbfac557df8
     1.1 --- a/src/cx/allocator.h	Mon Apr 18 15:59:09 2022 +0200
     1.2 +++ b/src/cx/allocator.h	Mon Apr 18 16:29:14 2022 +0200
     1.3 @@ -108,13 +108,13 @@
     1.4   * Function pointer type for destructor functions.
     1.5   *
     1.6   * A destructor function deallocates possible contents and MAY free the memory
     1.7 - * pointed to by \p memory.
     1.8 + * pointed to by \p memory. Read the documentation of the respective function
     1.9 + * pointer to learn if a destructor SHALL, MAY, or MUST NOT free the memory in that
    1.10 + * particular implementation.
    1.11   *
    1.12   * @param memory a pointer to the object to destruct
    1.13 - * @return \p memory if it has NOT been free'd by this destructor, otherwise \c NULL
    1.14    */
    1.15 -typedef void *(*cx_destructor_func)(void *memory)
    1.16 -        __attribute__((__nonnull__, __warn_unused_result__));
    1.17 +typedef void (*cx_destructor_func)(void *memory) __attribute__((__nonnull__));
    1.18  
    1.19  /**
    1.20   * Allocate \p n bytes of memory.

mercurial