From 180cc60feebea8126e1c2012092782b53e164648 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 8 Sep 2021 23:01:54 +0200 Subject: Some docs on main page. Added emplace_items to cstack. --- include/stc/cstack.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/stc/cstack.h b/include/stc/cstack.h index 984b8fad..ea116be2 100644 --- a/include/stc/cstack.h +++ b/include/stc/cstack.h @@ -84,6 +84,9 @@ STC_INLINE Self cx_memb(_clone)(Self v) { return out; } +STC_INLINE void cx_memb(_emplace_items)(Self *self, const cx_rawvalue_t arr[], size_t n) + { for (size_t i = 0; i < n; ++i) cx_memb(_push)(self, i_valfrom(arr[i])); } + STC_INLINE i_val cx_memb(_value_clone)(cx_value_t val) { return i_valfrom(i_valto(&val)); } -- cgit v1.2.3