RavEngine
Loading...
Searching...
No Matches
RavEngine::Debug Class Reference

Static Public Member Functions

static void LogTemp (const std::string_view message)
 
template<typename ... T>
static void LogTemp (const std::string_view formatstr, T &&... values)
 
static void Log (const std::string_view message)
 
template<typename ... T>
static constexpr void Log (const std::string_view formatstr, T &&... values)
 
static void Warning (const char *message)
 
template<typename ... T>
static void Warning (const std::string_view formatstr, T &&... values)
 
static void PrintStacktraceHere ()
 
static void Error (const std::string_view message)
 
template<typename ... T>
static void Error (const std::string_view formatstr, T &&... values)
 
static void Fatal (const std::string_view message)
 
template<typename ... T>
static void Fatal (const std::string_view formatstr, T &&... values)
 
template<typename ... T>
static void Assert (bool condition, const char *formatstr, T &&... values)
 
static void Assert (bool condition, const char *msg)
 
template<typename U , typename T >
static U AssertSize (T val, const char *name="")
 

Member Function Documentation

◆ Assert() [1/2]

template<typename ... T>
static void RavEngine::Debug::Assert ( bool  condition,
const char *  formatstr,
T &&...  values 
)
inlinestatic

Require a condition to be true

Parameters
conditionthe boolean to check
formatstrthe formatting string for the failure message
valuesthe optional values for the failure message

◆ Assert() [2/2]

static void RavEngine::Debug::Assert ( bool  condition,
const char *  msg 
)
inlinestatic

Require a condition to be true

Parameters
conditionthe boolean to check
msgthe string for the failure message

◆ AssertSize()

template<typename U , typename T >
static U RavEngine::Debug::AssertSize ( T  val,
const char *  name = "" 
)
inlinestatic

Asserts that the value is in range, then returns the value cast to the checked type

◆ Error() [1/2]

template<typename ... T>
static void RavEngine::Debug::Error ( const std::string_view  formatstr,
T &&...  values 
)
inlinestatic

Log a message to standard error, as an error.

Parameters
formatstrThe formatting string to log
valuesthe optional values to log

◆ Error() [2/2]

static void RavEngine::Debug::Error ( const std::string_view  message)
inlinestatic

Log a message to standard error, as an error.

Parameters
messageThe message to log.

◆ Fatal() [1/2]

template<typename ... T>
static void RavEngine::Debug::Fatal ( const std::string_view  formatstr,
T &&...  values 
)
inlinestatic

Log an error message and terminate.

Parameters
formatstrThe formatting string
valuesthe optional values

◆ Fatal() [2/2]

static void RavEngine::Debug::Fatal ( const std::string_view  message)
inlinestatic

Log an error message and terminate.

Parameters
messageThe message to log.

◆ Log() [1/2]

template<typename ... T>
static constexpr void RavEngine::Debug::Log ( const std::string_view  formatstr,
T &&...  values 
)
inlinestaticconstexpr

Log a message to standard output.

Parameters
formatstrThe formatting string to log
valuesthe optional values to log

◆ Log() [2/2]

static void RavEngine::Debug::Log ( const std::string_view  message)
inlinestatic

Log a message to standard output.

Parameters
messageThe message to log

◆ LogTemp() [1/2]

template<typename ... T>
static void RavEngine::Debug::LogTemp ( const std::string_view  formatstr,
T &&...  values 
)
inlinestatic

Log a message to standard output. In release builds, this method is stubbed and logs are disabled.

Parameters
formatstrThe formatting string to log
valuesthe optional values to log

◆ LogTemp() [2/2]

static void RavEngine::Debug::LogTemp ( const std::string_view  message)
inlinestatic

Log a message to standard output. In release builds, this method is stubbed and logs are disabled.

Parameters
messageThe message to log

◆ Warning() [1/2]

static void RavEngine::Debug::Warning ( const char *  message)
inlinestatic

Log a message to standard error, as a warning.

Parameters
messageThe message to log.

◆ Warning() [2/2]

template<typename ... T>
static void RavEngine::Debug::Warning ( const std::string_view  formatstr,
T &&...  values 
)
inlinestatic

Log a message to standard error, as a warning.

Parameters
formatstrThe formatting string to log
valuesthe optional values to log

The documentation for this class was generated from the following files: