#include <functional>
#include <boost/preprocessor/cat.hpp>
Go to the source code of this file.
Classes | |
class | utils::scope_exit< F > |
struct | utils::scope_exit_syntax_support |
Namespaces | |
utils | |
Macros | |
#define | ON_SCOPE_EXIT(...) [[maybe_unused]] const auto& BOOST_PP_CAT(scope_exit, __LINE__) = utils::scope_exit_syntax_support() << [__VA_ARGS__]() |
Run some arbitrary code (a lambda) when the current scope exits The lambda body follows this header, terminated by a semicolon. More... | |
#define ON_SCOPE_EXIT | ( | ... | ) | [[maybe_unused]] const auto& BOOST_PP_CAT(scope_exit, __LINE__) = utils::scope_exit_syntax_support() << [__VA_ARGS__]() |
Run some arbitrary code (a lambda) when the current scope exits The lambda body follows this header, terminated by a semicolon.
Definition at line 43 of file scope_exit.hpp.
Referenced by coro_send_file_userspace(), intf_object_dir(), luaW_get_attributes(), game_lua_kernel::run_wml_event(), game_lua_kernel::save_wml_event(), server_base::send_doc_queued(), and unit_display::unit_recruited().