summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cbits.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-11-06 15:52:16 +0100
committerTyge Løvset <[email protected]>2022-11-06 15:52:16 +0100
commit5ec606e5dfdbaebe22717d094b58ee7f365ffd9c (patch)
tree80bcfce7b82dd836724d793f3de3c224ac376154 /include/stc/cbits.h
parentbdbdf76616281f305ffc0af7f347f3fd8eaf0016 (diff)
downloadSTC-modified-5ec606e5dfdbaebe22717d094b58ee7f365ffd9c.tar.gz
STC-modified-5ec606e5dfdbaebe22717d094b58ee7f365ffd9c.zip
Added c_autodrop() macro, and removed c_autobuf() which wasn't that useful (and was undocumented).
Diffstat (limited to 'include/stc/cbits.h')
-rw-r--r--include/stc/cbits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cbits.h b/include/stc/cbits.h
index 6415c529..0b5c4db8 100644
--- a/include/stc/cbits.h
+++ b/include/stc/cbits.h
@@ -27,7 +27,7 @@ Similar to boost::dynamic_bitset / std::bitset
#include "cbits.h"
int main() {
- c_with (cbits bset = cbits_with_size(23, true), cbits_drop(&bset))
+ c_autodrop (cbits, bset, cbits_with_size(23, true))
{
cbits_reset(&bset, 9);
cbits_resize(&bset, 43, false);