summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cpque.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-09 00:14:50 +0200
committerTyge Løvset <[email protected]>2022-04-09 00:14:50 +0200
commit1a4223837d4e34a085f00e323759ee5f9cd81bd3 (patch)
tree9be8cb543c9043fa885e511b86595c91ea1f4fc5 /include/stc/cpque.h
parent03065ed6ef93f88003cd6754ca4d50ba20a76ebd (diff)
downloadSTC-modified-1a4223837d4e34a085f00e323759ee5f9cd81bd3.tar.gz
STC-modified-1a4223837d4e34a085f00e323759ee5f9cd81bd3.zip
Universally added a put() function to all containers.
Diffstat (limited to 'include/stc/cpque.h')
-rw-r--r--include/stc/cpque.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stc/cpque.h b/include/stc/cpque.h
index 3fa561ed..c30d1f8b 100644
--- a/include/stc/cpque.h
+++ b/include/stc/cpque.h
@@ -42,6 +42,9 @@ STC_API void _cx_memb(_make_heap)(_cx_self* self);
STC_API void _cx_memb(_erase_at)(_cx_self* self, size_t idx);
STC_API void _cx_memb(_push)(_cx_self* self, _cx_value value);
+STC_INLINE void _cx_memb(_put)(_cx_self* self, _cx_value value)
+ { _cx_memb(_push)(self, value); }
+
STC_INLINE _cx_self _cx_memb(_init)(void)
{ return c_make(_cx_self){NULL}; }