From a2a553b286cccf78644d25f4e75c8020f1f29002 Mon Sep 17 00:00:00 2001 From: sin-ack Date: Thu, 5 Aug 2021 13:52:01 +0000 Subject: [PATCH] AK: Add RecursionDecision Similar to IterationDecision, this can be returned from callbacks passed to recursive traversal functions to signal how to proceed. --- AK/RecursionDecision.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 AK/RecursionDecision.h diff --git a/AK/RecursionDecision.h b/AK/RecursionDecision.h new file mode 100644 index 00000000000..d2982767a2b --- /dev/null +++ b/AK/RecursionDecision.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2021, sin-ack + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +namespace AK { + +enum class RecursionDecision { + Recurse, + Continue, + Break, +}; + +} + +using AK::RecursionDecision;