diff options
| author | Tyge Løvset <[email protected]> | 2021-10-04 19:28:17 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-04 19:28:17 +0200 |
| commit | 20645dbb5ca19015d100f33277c7fcf60bd4bf93 (patch) | |
| tree | 1e54746437047c9c19cf4f2115070f29728ec189 /examples | |
| parent | 35997591de5a448752734c822b0f1003e08853a5 (diff) | |
| download | STC-modified-20645dbb5ca19015d100f33277c7fcf60bd4bf93.tar.gz STC-modified-20645dbb5ca19015d100f33277c7fcf60bd4bf93.zip | |
Added c_autodefer() macro (again). Depressed warning with c_no_compare().
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/splitstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/splitstr.c b/examples/splitstr.c index e4f6ab8a..82914485 100644 --- a/examples/splitstr.c +++ b/examples/splitstr.c @@ -36,7 +36,7 @@ int main() cstr string = cstr_lit("Split,this,,string,now,");
cvec_str vec = string_split(cstr_sv(string), c_sv(","));
- c_autoscope (0, cvec_str_del(&vec), cstr_del(&string))
+ c_autodefer (cvec_str_del(&vec), cstr_del(&string))
c_foreach (i, cvec_str, vec)
printf("\t\"%s\"\n", i.ref->str);
}
\ No newline at end of file |
