MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / defer

Function defer

modules/core/base/include/SkrBase/misc/defer.hpp:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template <typename F>
35detail::defer_raii<F> defer(F&& f)
36{
37 return { std::forward<F>(f) };
38}
39
40#define SKR_DEFER_ACTUALLY_JOIN(x, y) x##y
41#define SKR_DEFER_JOIN(x, y) SKR_DEFER_ACTUALLY_JOIN(x, y)

Callers 4

scheduler_test.cppFile · 0.85
defer_test.cppFile · 0.85
TestEventsMethod · 0.85
TestCallsMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestEventsMethod · 0.68
TestCallsMethod · 0.68