diff options
| author | Tyge Løvset <[email protected]> | 2022-11-06 15:52:16 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-11-06 15:52:16 +0100 |
| commit | 5ec606e5dfdbaebe22717d094b58ee7f365ffd9c (patch) | |
| tree | 80bcfce7b82dd836724d793f3de3c224ac376154 /README.md | |
| parent | bdbdf76616281f305ffc0af7f347f3fd8eaf0016 (diff) | |
| download | STC-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.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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* |
