#include <cassert>
#include <cstdio>
#include <cstdlib>
#include "tonic/common/log.h"
Go to the source code of this file.
◆ TONIC_CHECK
#define TONIC_CHECK |
( |
|
condition | ) |
|
Value: { \
if (!(condition)) { \
tonic::Log("assertion failed " #condition); \
abort(); \
} \
}
Definition at line 23 of file macros.h.
24 { \
25 if (!(condition)) { \
26 tonic::Log("assertion failed " #condition); \
27 abort(); \
28 } \
29 }
◆ TONIC_DCHECK
◆ TONIC_DISALLOW_ASSIGN
#define TONIC_DISALLOW_ASSIGN |
( |
|
TypeName | ) |
void operator=(const TypeName&) = delete; |
◆ TONIC_DISALLOW_COPY
#define TONIC_DISALLOW_COPY |
( |
|
TypeName | ) |
TypeName(const TypeName&) = delete; |
◆ TONIC_DISALLOW_COPY_AND_ASSIGN
#define TONIC_DISALLOW_COPY_AND_ASSIGN |
( |
|
TypeName | ) |
|
Value:
TONIC_DISALLOW_ASSIGN(TypeName)
#define TONIC_DISALLOW_COPY(TypeName)
Definition at line 19 of file macros.h.