diff options
Diffstat (limited to 'src/jq/saveable_stack.zig')
| -rw-r--r-- | src/jq/saveable_stack.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jq/saveable_stack.zig b/src/jq/saveable_stack.zig index a3085d6..f3a0b40 100644 --- a/src/jq/saveable_stack.zig +++ b/src/jq/saveable_stack.zig @@ -101,6 +101,10 @@ pub fn SaveableStack(comptime T: type) type { return seg.previous_position.offset == 0; } + pub fn isBeyondSavepointBoundary(self: *Self) bool { + return self.activeSegment().len() == 0; + } + pub fn pop(self: *Self) T { std.debug.assert(!self.isEmpty()); |
