mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-22 02:45:07 -04:00
scope guard: ensure implicit lambdas are always inline
This commit is contained in:
parent
9068e2071c
commit
11d4e74620
2 changed files with 4 additions and 2 deletions
|
@ -54,5 +54,5 @@ namespace ams::util {
|
|||
|
||||
}
|
||||
|
||||
#define SCOPE_GUARD ::ams::util::impl::ScopeGuardOnExit() + [&]()
|
||||
#define SCOPE_GUARD ::ams::util::impl::ScopeGuardOnExit() + [&]() ALWAYS_INLINE_LAMBDA
|
||||
#define ON_SCOPE_EXIT auto ANONYMOUS_VARIABLE(SCOPE_EXIT_STATE_) = SCOPE_GUARD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue