summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 123c37a..b62c1b4 100644
--- a/eval.c
+++ b/eval.c
@@ -474,6 +474,13 @@ out:
}
/**
+ * -depth N test.
+ */
+bool eval_depth(const struct expr *expr, struct eval_state *state) {
+ return do_cmp(expr, state->ftwbuf->depth);
+}
+
+/**
* -empty test.
*/
bool eval_empty(const struct expr *expr, struct eval_state *state) {