diff options
| author | mattkae <mattkae@protonmail.com> | 2022-12-23 12:34:10 -0500 |
|---|---|---|
| committer | mattkae <mattkae@protonmail.com> | 2022-12-23 12:34:10 -0500 |
| commit | f63d0af456f76d713e56ca17be114fba0af22f6c (patch) | |
| tree | 87fd6b84882ad08fc3c47d3c4b899d0119eb044c /themes/list.h | |
| parent | 4ac5e377a8ff514180082d92b38369a920ef02d1 (diff) | |
Yeeting all of the snowflakes at once
Diffstat (limited to 'themes/list.h')
| -rw-r--r-- | themes/list.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/list.h b/themes/list.h index 0c5b0a1..25b236a 100644 --- a/themes/list.h +++ b/themes/list.h @@ -73,10 +73,12 @@ namespace matte { template <typename T> bool List<T>::grow(size_t newSize) { if (!growDynamically) { + logger_error("Cannot grow list: growDynamically is disabled"); return false; } if (newSize == 0) { + logger_error("Cannot grow list: newSize is zero!"); return false; } @@ -240,4 +242,4 @@ namespace matte { memmove(&data[idx], &temp, sizeof(T)); } } -}
\ No newline at end of file +} |
