Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ScopeExit.h File Reference

Go to the source code of this file.

Classes

class  ScopeExit< F >
 Class that calls a function when it goes out of scope. More...
 

Macros

#define JPH_SCOPE_EXIT_TAG2(line)
 
#define JPH_SCOPE_EXIT_TAG(line)
 
#define JPH_SCOPE_EXIT(...)
 Usage: JPH_SCOPE_EXIT([]{ code to call on scope exit });.
 

Macro Definition Documentation

◆ JPH_SCOPE_EXIT

#define JPH_SCOPE_EXIT ( ...)
Value:
ScopeExit JPH_SCOPE_EXIT_TAG(__LINE__)(__VA_ARGS__)
#define JPH_SCOPE_EXIT_TAG(line)
Definition ScopeExit.h:44
Class that calls a function when it goes out of scope.
Definition ScopeExit.h:14

Usage: JPH_SCOPE_EXIT([]{ code to call on scope exit });.

◆ JPH_SCOPE_EXIT_TAG

#define JPH_SCOPE_EXIT_TAG ( line)
Value:
#define JPH_SCOPE_EXIT_TAG2(line)
Definition ScopeExit.h:43

◆ JPH_SCOPE_EXIT_TAG2

#define JPH_SCOPE_EXIT_TAG2 ( line)
Value:
scope_exit##line