diff options
author | David Robillard <d@drobilla.net> | 2024-06-22 20:12:50 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-06-22 20:19:27 -0400 |
commit | 384b073bdad676bd3e1e39b527321e9a67bfa491 (patch) | |
tree | e56722ca117ecdab51b61b69d69c0fd5fdb158e3 /include/zix/ring.h | |
parent | b7e4e28dccdff26bc5e402926e61039f8e9ee966 (diff) | |
download | zix-384b073bdad676bd3e1e39b527321e9a67bfa491.tar.gz zix-384b073bdad676bd3e1e39b527321e9a67bfa491.tar.bz2 zix-384b073bdad676bd3e1e39b527321e9a67bfa491.zip |
Add ZIX_NODISCARD attribute to allocating, accessor, and pure API
Diffstat (limited to 'include/zix/ring.h')
-rw-r--r-- | include/zix/ring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/zix/ring.h b/include/zix/ring.h index a18a50b..db72f41 100644 --- a/include/zix/ring.h +++ b/include/zix/ring.h @@ -41,6 +41,7 @@ typedef struct ZixRingImpl ZixRing; At most `size` - 1 bytes may be stored in the ring at once. */ ZIX_API +ZIX_NODISCARD ZixRing* ZIX_ALLOCATED zix_ring_new(ZixAllocator* ZIX_NULLABLE allocator, uint32_t size); @@ -155,6 +156,7 @@ zix_ring_write(ZixRing* ZIX_NONNULL ring, @return A new empty transaction. */ ZIX_API +ZIX_NODISCARD ZixRingTransaction zix_ring_begin_write(ZixRing* ZIX_NONNULL ring); |