diff options
| author | gingerBill <bill+github@gingerbill.org> | 2016-08-11 21:53:44 +0100 |
|---|---|---|
| committer | gingerBill <bill+github@gingerbill.org> | 2016-08-11 21:53:44 +0100 |
| commit | 19cc77dad301225754bdc797e2bd55f580775048 (patch) | |
| tree | ad00dfa171745b5c66d0e00391aa2f21c48d2872 /src/common.cpp | |
| parent | 4c467b118d12ca6fabd018e4c0295096fa4d399b (diff) | |
Code generation for procedure literals
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp index 2a0cd8371..02d4f4866 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -33,7 +33,7 @@ i64 next_pow2(i64 n) { } -#define gb_for_array(index_, array_) for (isize index_ = 0; index_ < gb_array_count(array_); index_++) +#define gb_for_array(index_, array_) for (isize index_ = 0; (array_) != NULL && index_ < gb_array_count(array_); index_++) // Doubly Linked Lists |