Optimize Vector_size on non-debug builds

This commit is contained in:
Hisham Muhammad
2018-02-05 11:01:35 +01:00
parent 03f17688ad
commit f37a050d3d
2 changed files with 16 additions and 0 deletions

View File

@ -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
/*
*/