diff options
author | Daniel Lange <DLange@git.local> | 2018-04-11 01:26:28 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2018-04-11 01:52:54 +0200 |
commit | df568a576f7b44ac5a2b9b7222c7f39d9932f626 (patch) | |
tree | b30ce33fd0d49398b52bf9a90b42304a7c32455a /Vector.c | |
parent | 2ee50d030178cede83eb9d0005fbc19f819d30fe (diff) | |
download | debian_htop-df568a576f7b44ac5a2b9b7222c7f39d9932f626.tar.gz debian_htop-df568a576f7b44ac5a2b9b7222c7f39d9932f626.tar.bz2 debian_htop-df568a576f7b44ac5a2b9b7222c7f39d9932f626.zip |
Imported Upstream version 2.2.0
Diffstat (limited to 'Vector.c')
-rw-r--r-- | Vector.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -284,11 +284,19 @@ inline Object* Vector_get(Vector* this, int idx) { #endif +#ifdef DEBUG + inline int Vector_size(Vector* this) { assert(Vector_isConsistent(this)); return this->items; } +#else + +#define Vector_size(v_) ((v_)->items) + +#endif + /* static void Vector_merge(Vector* this, Vector* v2) { |