Foundation
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
AllocatorStack.hpp File Reference
#include "Allocator.hpp"
#include "Atomic.hpp"
#include "Logging.hpp"

Go to the source code of this file.

Classes

class  Foundation::Core::AllocatorStack
 Implements a lock-free stack-based bump allocator. More...
 

Namespaces

namespace  Foundation
 
namespace  Foundation::Core
 Lock-free atomic primitives and implementations of data structures.
 

Macros

#define CHECK_MSG(expr, format_str, ...)
 

Macro Definition Documentation

◆ CHECK_MSG

#define CHECK_MSG (   expr,
  format_str,
  ... 
)
Value:
do { \
if (!(expr)) [[unlikely]] { \
LOG(Core, LogError, "Check failed: {}", FOUNDATION_SOURCE_LOC ":" #expr); \
LOG(Core, LogError, format_str __VA_OPT__(,) __VA_ARGS__); \
FOUNDATION_TRAP(); \
std::terminate(); \
} \
} while (false);
#define FOUNDATION_SOURCE_LOC
Definition Logging.hpp:91
@ LogError
Definition Logging.hpp:17