Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
defer.hpp File Reference
#include <helios/core_pch.hpp>
#include <helios/core/core.hpp>
#include <concepts>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  helios::utils::Defer< F >
 

Namespaces

namespace  helios
 
namespace  helios::utils
 
namespace  helios::utils::details
 

Macros

#define HELIOS_DEFER_CALL(callable)   auto HELIOS_CONCAT(_defer_, __LINE__) = ::helios::utils::Defer(callable)
 
#define HELIOS_DEFER
 

Macro Definition Documentation

◆ HELIOS_DEFER

#define HELIOS_DEFER
Value:
auto HELIOS_CONCAT(_defer_, __LINE__) = \
::helios::utils::details::DeferHelper() + [&]()
#define HELIOS_CONCAT(a, b)
Definition core.hpp:111
Examples
/home/runner/work/HeliosEngine/HeliosEngine/src/core/include/helios/core/utils/defer.hpp.

Definition at line 90 of file defer.hpp.

◆ HELIOS_DEFER_CALL

#define HELIOS_DEFER_CALL (   callable)    auto HELIOS_CONCAT(_defer_, __LINE__) = ::helios::utils::Defer(callable)