A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Logger.hh File Reference

Go to the source code of this file.

Macros

#define TOSTRINGIMPL(x)
#define TOSTRING(x)
#define FILE_NAME   __FILE__
#define STATIC_ASSERT(e)
#define RUNTIME_ASSERT(e)
#define ASSERT(e)
#define PANIC(m, ...)
#define WARN(m, ...)
#define REPORT(m, ...)
#define DEBUG(m, ...)

Macro Definition Documentation

◆ TOSTRINGIMPL

#define TOSTRINGIMPL ( x)
Value:
#x

Definition at line 6 of file Logger.hh.

◆ TOSTRING

#define TOSTRING ( x)
Value:
#define TOSTRINGIMPL(x)
Definition Logger.hh:6

Definition at line 7 of file Logger.hh.

◆ FILE_NAME

#define FILE_NAME   __FILE__

Definition at line 12 of file Logger.hh.

◆ STATIC_ASSERT

#define STATIC_ASSERT ( e)
Value:
static_assert(e, "[" FILE_NAME ":" TOSTRING(__LINE__) "] ASSERT: " #e)
#define TOSTRING(x)
Definition Logger.hh:7
#define FILE_NAME
Definition Logger.hh:12

Definition at line 15 of file Logger.hh.

Referenced by SphereLink::calcConstraints(), ObjectDossunTsuibiHolder::calcRot(), and ObjectCowFollower::enterFreeRoam().

◆ RUNTIME_ASSERT

#define RUNTIME_ASSERT ( e)
Value:
do { \
if (!(e)) { \
printf("[" FILE_NAME ":" TOSTRING(__LINE__) "] ASSERT: " #e "\n"); \
abort(); \
} \
} while (0)

Definition at line 17 of file Logger.hh.

◆ ASSERT

#define ASSERT ( e)
Value:
#define RUNTIME_ASSERT(e)
Definition Logger.hh:17

Definition at line 25 of file Logger.hh.

◆ PANIC

◆ WARN

◆ REPORT

#define REPORT ( m,
... )
Value:
do { \
printf("[" FILE_NAME ":" TOSTRING(__LINE__) "] REPORT: " m "\n", ##__VA_ARGS__); \
} while (0)

Definition at line 38 of file Logger.hh.

Referenced by KTestSystem::calcTest(), KTestSystem::checkDesync(), and KTestSystem::checkDesync().

◆ DEBUG

#define DEBUG ( m,
... )

Definition at line 49 of file Logger.hh.