AK: Add RecursionDecision

Similar to IterationDecision, this can be returned from callbacks passed
to recursive traversal functions to signal how to proceed.
This commit is contained in:
sin-ack 2021-08-05 13:52:01 +00:00 committed by Andreas Kling
parent 833936f3ec
commit a2a553b286
Notes: sideshowbarker 2024-07-18 07:18:57 +09:00

19
AK/RecursionDecision.h Normal file
View File

@ -0,0 +1,19 @@
/*
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace AK {
enum class RecursionDecision {
Recurse,
Continue,
Break,
};
}
using AK::RecursionDecision;