aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorColin Davidson <colrdavidson@gmail.com>2022-12-28 21:44:17 -0800
committerColin Davidson <colrdavidson@gmail.com>2022-12-28 21:44:17 -0800
commit5f27f2dd7f7c4af93435ff2e426cc5882cd8dbe7 (patch)
tree02e14df3ab556b025cc579e0b9fc1674b6a38b2e /src/common.cpp
parent00823ca88c870d49186dbcaa21c54384c0b9364f (diff)
move to work-stealing threadpool
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 3624446f1..3b6ea59e8 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -31,7 +31,8 @@
gb_internal gbAllocator heap_allocator(void);
-#define for_array(index_, array_) for (isize index_ = 0; index_ < (array_).count; index_++)
+#define for_array_off(index_, off_, array_) for (isize index_ = off_; index_ < (array_).count; index_++)
+#define for_array(index_, array_) for_array_off(index_, 0, array_)
gb_internal i32 next_pow2(i32 n);
gb_internal i64 next_pow2(i64 n);
@@ -908,4 +909,4 @@ gb_internal Slice<DistanceAndTarget> did_you_mean_results(DidYouMeanAnswers *d)
#if defined(GB_SYSTEM_WINDOWS)
#pragma warning(pop)
-#endif \ No newline at end of file
+#endif