summaryrefslogtreecommitdiff
path: root/Source/Kernel/Library/SimpleList.class.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/Library/SimpleList.class.h')
-rw-r--r--Source/Kernel/Library/SimpleList.class.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Kernel/Library/SimpleList.class.h b/Source/Kernel/Library/SimpleList.class.h
index c0ea111..770128e 100644
--- a/Source/Kernel/Library/SimpleList.class.h
+++ b/Source/Kernel/Library/SimpleList.class.h
@@ -27,6 +27,11 @@ class SimpleList {
return m_next;
}
+ SimpleList<T>* last() {
+ if (m_next == 0) return this;
+ return m_next->last();
+ }
+
SimpleList<T>* delThis() {
SimpleList<T>* ret = m_next;
Mem::kfree(this);