Using For from Array

This commit is contained in:
Krzosa Karol
2023-04-02 12:13:11 +02:00
parent 9dfa539563
commit e2140817df
4 changed files with 21 additions and 23 deletions

View File

@@ -440,5 +440,3 @@ operator!=(Intern_String a, Intern_String b) {
#define For_Linked_List_Named(a, it) for (auto *it = (a); it; it = it->next) // @todo: reference?
#define For_Linked_List(a) For_Linked_List_Named(a, it)
#define For_Named(a, it) for (auto &it : (a))
#define For(a) For_Named((a), it)