summaryrefslogtreecommitdiffhomepage
path: root/README.md
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 /README.md
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 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1e52b696..6752f607 100644
--- a/README.md
+++ b/README.md
@@ -371,7 +371,7 @@ and non-emplace methods:
#include <stc/cvec.h> // vector of string (cstr)
...
c_auto (cvec_str, vec) // declare and call cvec_str_init() and defer cvec_str_drop(&vec)
-c_with (cstr s = cstr_new("a string literal"), cstr_drop(&s)) // c_with is a more general c_auto.
+c_autodrop (cstr, s, cstr_new("a string literal")) // like c_auto without auto default init.
{
const char* hello = "Hello";
cvec_str_push_back(&vec, cstr_from(hello); // construct and add string from const char*