Clean up stack
This commit is contained in:
parent
1850951b4f
commit
5a34d74702
5 changed files with 117 additions and 116 deletions
|
|
@ -38,8 +38,8 @@ extern "C" {
|
|||
|
||||
#define array_delete(self) array__delete((VoidArray *)self)
|
||||
|
||||
#define array_push(self, element) \
|
||||
(((self)->size < (self)->capacity || \
|
||||
#define array_push(self, element) \
|
||||
(((self)->size < (self)->capacity || \
|
||||
array_grow((self), (self)->capacity ? (self)->capacity * 2 : 4)) && \
|
||||
((self)->contents[(self)->size++] = (element), true))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue