aboutsummaryrefslogtreecommitdiffstats
path: root/Vector.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2018-04-11 01:26:28 +0200
committerDaniel Lange <DLange@git.local>2018-04-11 01:26:28 +0200
commitc60f4cf3c1d91bd786db8e081699f420f44631f3 (patch)
treeb30ce33fd0d49398b52bf9a90b42304a7c32455a /Vector.h
parent2ee50d030178cede83eb9d0005fbc19f819d30fe (diff)
downloaddebian_htop-c60f4cf3c1d91bd786db8e081699f420f44631f3.tar.gz
debian_htop-c60f4cf3c1d91bd786db8e081699f420f44631f3.tar.bz2
debian_htop-c60f4cf3c1d91bd786db8e081699f420f44631f3.zip
New upstream version 2.2.0
Diffstat (limited to 'Vector.h')
-rw-r--r--Vector.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Vector.h b/Vector.h
index 9b28477..85939bf 100644
--- a/Vector.h
+++ b/Vector.h
@@ -70,8 +70,16 @@ extern Object* Vector_get(Vector* this, int idx);
#endif
+#ifdef DEBUG
+
extern int Vector_size(Vector* this);
+#else
+
+#define Vector_size(v_) ((v_)->items)
+
+#endif
+
/*
*/

© 2014-2024 Faster IT GmbH | imprint | privacy policy