Changed pop to return a value
This commit is contained in:
parent
5a41640054
commit
de458050ce
1 changed files with 1 additions and 5 deletions
6
lazy.h
6
lazy.h
|
|
@ -110,11 +110,7 @@ long long lz_slc_atoll(Lz_Slc *src);
|
|||
#endif
|
||||
|
||||
#ifndef lz_da_pop
|
||||
#define lz_da_pop(da) do {\
|
||||
if ((da).cnt > 0) {\
|
||||
(da).cnt--;\
|
||||
}\
|
||||
} while(0)
|
||||
#define lz_da_pop(da) ((da).cnt >= 1 ? (da).data[--(da).cnt] : NULL)
|
||||
#endif
|
||||
|
||||
#ifndef lz_da_concat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue