mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:27:45 +00:00
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:
parent
833936f3ec
commit
a2a553b286
1 changed files with 19 additions and 0 deletions
19
AK/RecursionDecision.h
Normal file
19
AK/RecursionDecision.h
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue