util/ConstBuffer: wrap assert() in NDEBUG check

Fixes build failure because assert.h was not included.
This commit is contained in:
Max Kellermann 2014-06-26 13:31:45 +02:00
parent 7213c26798
commit 74a46788cd

View File

@ -208,7 +208,9 @@ struct ConstBuffer {
* not actually modify the buffer). Buffer must not be empty.
*/
void pop_front() {
#ifndef NDEBUG
assert(!IsEmpty());
#endif
++data;
--size;
@ -219,7 +221,9 @@ struct ConstBuffer {
* not actually modify the buffer). Buffer must not be empty.
*/
void pop_back() {
#ifndef NDEBUG
assert(!IsEmpty());
#endif
--size;
}