Blender V5.3
FN_multi_function_registry.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_ustring.hh"
12
13#include "FN_multi_function.hh"
14
16
21void add_new(const MultiFunction &fn);
22
26template<typename CreateFn> inline void add_new_cb(CreateFn &&create_fn)
27{
28 static auto fn = create_fn();
30}
31
36
37} // namespace blender::fn::multi_function::registry
const MultiFunction & lookup(UString id)