mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +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
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
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
Reference in a new issue