diff options
| author | Tyge Løvset <[email protected]> | 2023-05-23 22:44:33 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-23 22:44:33 +0200 |
| commit | b1bbd0564a0d8d43172a654b51ff28bb62e0979a (patch) | |
| tree | dc6da16a716f65c4d226b9600fd270f5173d735d /include/stc/ccommon.h | |
| parent | f80a78239f545d7d73c8358056dd5d5825ccfe0b (diff) | |
| download | STC-modified-b1bbd0564a0d8d43172a654b51ff28bb62e0979a.tar.gz STC-modified-b1bbd0564a0d8d43172a654b51ff28bb62e0979a.zip | |
Some house holding cleanup.
Diffstat (limited to 'include/stc/ccommon.h')
| -rw-r--r-- | include/stc/ccommon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h index eb3a6601..01ead57a 100644 --- a/include/stc/ccommon.h +++ b/include/stc/ccommon.h @@ -217,8 +217,8 @@ STC_INLINE intptr_t cnextpow2(intptr_t n) { #else #include <initializer_list> #define c_forlist(it, T, ...) \ - for (struct {std::initializer_list<T> _il; std::initializer_list<T>::iterator data, ref; size_t size, index;} \ - it = {._il=__VA_ARGS__, .data=it._il.begin(), .ref=it.data, .size=it._il.size()} \ + for (struct {std::initializer_list<T> _il; std::initializer_list<T>::iterator ref; size_t size, index;} \ + it = {._il=__VA_ARGS__, .ref=it._il.begin(), .size=it._il.size()} \ ; it.index < it.size; ++it.ref, ++it.index) #endif |
