mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-26 14:57:54 +03: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
Notes:
sideshowbarker
2024-07-18 07:18:57 +09:00
Author: https://github.com/sin-ack Commit: https://github.com/SerenityOS/serenity/commit/a2a553b286c Pull-request: https://github.com/SerenityOS/serenity/pull/9117 Reviewed-by: https://github.com/Lubrsi Reviewed-by: https://github.com/alimpfard ✅ Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bgianfo Reviewed-by: https://github.com/boricj
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…
Reference in New Issue
Block a user