#include <fmt/base.h>
#include <fmt/format.h>
#include <cstdlib>
#include <iterator>
#include "Allocator.hpp"
Go to the source code of this file.
◆ CHECK
Value: do { \
if (!(expr)) [[unlikely]] { \
FOUNDATION_TRAP(); \
std::terminate(); \
} \
} while (false);
#define FOUNDATION_SOURCE_LOC
Definition Logging.hpp:91
@ LogError
Definition Logging.hpp:17
◆ CHECK_MSG
| #define CHECK_MSG |
( |
|
expr, |
|
|
|
format_str, |
|
|
|
... |
|
) |
| |
Value: do { \
if (!(expr)) [[unlikely]] { \
LOG(Core,
LogError, format_str __VA_OPT__(,) __VA_ARGS__); \
FOUNDATION_TRAP(); \
std::terminate(); \
} \
} while (false);
◆ FMT_EXCEPTIONS
◆ FOUNDATION_SOURCE_LOC
◆ FOUNDATION_STRINGIFY
◆ FOUNDATION_STRINGIFY_2
| #define FOUNDATION_STRINGIFY_2 |
( |
|
x | ) |
#x |
◆ FOUNDATION_TRAP
| #define FOUNDATION_TRAP |
( |
| ) |
__builtin_trap() |
◆ LOG
| #define LOG |
( |
|
TAG, |
|
|
|
LEVEL, |
|
|
|
FORMAT, |
|
|
|
... |
|
) |
| Foundation_Log(#TAG, LEVEL, FORMAT __VA_OPT__(,) __VA_ARGS__); |
◆ LogLevel
| Enumerator |
|---|
| LogDebug | |
| LogInfo | |
| LogWarn | |
| LogError | |
◆ format_as()
template<bool Ansi = true>
| constexpr const char * format_as |
( |
LogLevel |
level | ) |
|
|
constexpr |
◆ Foundation_Log()
template<typename ... Args>
| void Foundation_Log |
( |
const char * |
tag, |
|
|
LogLevel |
level, |
|
|
fmt::format_string< Args... > |
format, |
|
|
Args &&... |
args |
|
) |
| |
◆ Foundation_LogImpl()
| void Foundation_LogImpl |
( |
LogLevel |
level, |
|
|
const char * |
tag, |
|
|
const char * |
formatted |
|
) |
| |
|
extern |
◆ Foundation_PrintImpl()
| void Foundation_PrintImpl |
( |
const char * |
formatted, |
|
|
bool |
flush |
|
) |
| |
|
extern |