diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2023-01-01 13:29:20 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-01 13:29:20 +0000 |
| commit | c08ff891ad05605be56ea6a789e8d6c9a801da1f (patch) | |
| tree | 27edc49833bfac6d1054bc8e3ea07d2191648f19 /src/common.cpp | |
| parent | 28fb35f2f7a6ffd75e76dd95352f4194d79b3166 (diff) | |
| parent | 168cec1e9d56563719039d766fc6bf776f3cf5ee (diff) | |
Merge pull request #2287 from odin-lang/compiler-improvements-2022-12
Compiler improvements 2022 12
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 5 |
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 |