Flutter Engine
The Flutter Engine
Macros
macros.h File Reference
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include "tonic/common/log.h"

Go to the source code of this file.

Macros

#define TONIC_DISALLOW_COPY(TypeName)   TypeName(const TypeName&) = delete;
 
#define TONIC_DISALLOW_ASSIGN(TypeName)    void operator=(const TypeName&) = delete;
 
#define TONIC_DISALLOW_COPY_AND_ASSIGN(TypeName)
 
#define TONIC_CHECK(condition)
 
#define TONIC_DCHECK   TONIC_CHECK
 

Macro Definition Documentation

◆ TONIC_CHECK

#define TONIC_CHECK (   condition)
Value:
{ \
if (!(condition)) { \
tonic::Log("assertion failed " #condition); \
abort(); \
} \
}
void Log(const char *format,...) SK_PRINTF_LIKE(1
Definition: TestRunner.cpp:137

Definition at line 23 of file macros.h.

◆ TONIC_DCHECK

#define TONIC_DCHECK   TONIC_CHECK

Definition at line 32 of file macros.h.

◆ TONIC_DISALLOW_ASSIGN

#define TONIC_DISALLOW_ASSIGN (   TypeName)     void operator=(const TypeName&) = delete;

Definition at line 16 of file macros.h.

◆ TONIC_DISALLOW_COPY

#define TONIC_DISALLOW_COPY (   TypeName)    TypeName(const TypeName&) = delete;

Definition at line 14 of file macros.h.

◆ TONIC_DISALLOW_COPY_AND_ASSIGN

#define TONIC_DISALLOW_COPY_AND_ASSIGN (   TypeName)
Value:
TONIC_DISALLOW_COPY(TypeName) \
TONIC_DISALLOW_ASSIGN(TypeName)
#define TONIC_DISALLOW_COPY(TypeName)
Definition: macros.h:14

Definition at line 19 of file macros.h.