diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/buffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/buffer.h b/lib/buffer.h index cd9bab86..fd40baa0 100644 --- a/lib/buffer.h +++ b/lib/buffer.h @@ -50,6 +50,8 @@ #define BUFFER_FLUSH(v) ({ (v).used = 0; }) +#define BUFFER_EMPTY(v) ({ (v).used == 0; }) + #define BUFFER_WALK(v,n) \ for (BUFFER_TYPE(v) *_n = (v).data, n; _n < ((v).data + (v).used) && (n = *_n, 1); _n++) |