Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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(); \
} \
}

Definition at line 23 of file macros.h.

24 { \
25 if (!(condition)) { \
26 tonic::Log("assertion failed " #condition); \
27 abort(); \
28 } \
29 }

◆ 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.