summaryrefslogtreecommitdiff
path: root/themes/list.h
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-12-23 12:34:10 -0500
committermattkae <mattkae@protonmail.com>2022-12-23 12:34:10 -0500
commitf63d0af456f76d713e56ca17be114fba0af22f6c (patch)
tree87fd6b84882ad08fc3c47d3c4b899d0119eb044c /themes/list.h
parent4ac5e377a8ff514180082d92b38369a920ef02d1 (diff)
Yeeting all of the snowflakes at once
Diffstat (limited to 'themes/list.h')
-rw-r--r--themes/list.h4
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
+}