mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-04 19:34:42 -04:00
Use macro instead of a C++ iterator - for speed
C++ iterators are bad.
This commit is contained in:
1 parent
228ddd6903
commit
bc36ea4170
4 files changed
+21
-28
No files matched your search
+1
-1
@@ -6028,7 +6028,7 @@ gb_internal bool check_unpack_arguments(CheckerContext *ctx, Entity **lhs, isize
|
||||
}
|
||||
rw_mutex_shared_lock(&decl->deps_mutex);
|
||||
rw_mutex_lock(&c->decl->deps_mutex);
|
||||
for (Entity *dep : decl->deps) {
|
||||
FOR_PTR_SET(dep, decl->deps) {
|
||||
ptr_set_add(&c->decl->deps, dep);
|
||||
}
|
||||
rw_mutex_unlock(&c->decl->deps_mutex);
|
||||
|
||||
Reference in new issue
Block a user