diff options
Diffstat (limited to 'memstack/include')
-rw-r--r-- | memstack/include/memstack.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/memstack/include/memstack.h b/memstack/include/memstack.h index 97a9d12..93cd2e6 100644 --- a/memstack/include/memstack.h +++ b/memstack/include/memstack.h | |||
@@ -32,6 +32,12 @@ void memstack_del(memstack*); | |||
32 | /// Clear the stack. | 32 | /// Clear the stack. |
33 | void memstack_clear(memstack*); | 33 | void memstack_clear(memstack*); |
34 | 34 | ||
35 | /// Return the top of the stack. | ||
36 | size_t memstack_watermark(const memstack*); | ||
37 | |||
38 | /// Set the top of the stack. | ||
39 | void memstack_set_watermark(memstack*, size_t watermark); | ||
40 | |||
35 | /// Allocate a new block. | 41 | /// Allocate a new block. |
36 | /// | 42 | /// |
37 | /// Return null if the block does not fit in the remaining memory. | 43 | /// Return null if the block does not fit in the remaining memory. |