Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
mock_undo_stack.h
1// SPDX-FileCopyrightText: © 2025 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#pragma once
5
6#include "undo/undo_stack.h"
7
8namespace zrythm::actions
9{
10static inline std::unique_ptr<undo::UndoStack>
11create_mock_undo_stack ()
12{
13 return std::make_unique<undo::UndoStack> ([] (const auto &callback, bool) {
14 callback ();
15 });
16}
17}