Back to index

enigmail  1.4.3
Defines | Functions | Variables
Assertions.h File Reference
#include "mozilla/Attributes.h"
#include "mozilla/Types.h"

Go to the source code of this file.

Defines

#define MOZ_STATIC_ASSERT_GLUE1(x, y)   x##y
#define MOZ_STATIC_ASSERT_GLUE(x, y)   MOZ_STATIC_ASSERT_GLUE1(x, y)
#define MOZ_STATIC_ASSERT(cond, reason)   extern void MOZ_STATIC_ASSERT_GLUE(moz_static_assert, __LINE__)(int arg[(cond) ? 1 : -1])
#define MOZ_STATIC_ASSERT_IF(cond, expr, reason)   MOZ_STATIC_ASSERT(!(cond) || (expr), reason)
#define MOZ_ASSERT(...)   ((void)0)
#define MOZ_ASSERT_IF(cond, expr)   ((void)0)
#define MOZ_NOT_REACHED(reason)   ((void)0)
#define MOZ_ALWAYS_TRUE(expr)   ((void)(expr))
#define MOZ_ALWAYS_FALSE(expr)   ((void)(expr))

Functions

 MFBT_API (void) MOZ_Crash(void)

Variables

const char * file
const char int ln

Define Documentation

#define MOZ_ALWAYS_FALSE (   expr)    ((void)(expr))

Definition at line 304 of file Assertions.h.

#define MOZ_ALWAYS_TRUE (   expr)    ((void)(expr))

Definition at line 303 of file Assertions.h.

#define MOZ_ASSERT (   ...)    ((void)0)

Definition at line 208 of file Assertions.h.

#define MOZ_ASSERT_IF (   cond,
  expr 
)    ((void)0)

Definition at line 223 of file Assertions.h.

#define MOZ_NOT_REACHED (   reason)    ((void)0)

Definition at line 289 of file Assertions.h.

#define MOZ_STATIC_ASSERT (   cond,
  reason 
)    extern void MOZ_STATIC_ASSERT_GLUE(moz_static_assert, __LINE__)(int arg[(cond) ? 1 : -1])

Definition at line 123 of file Assertions.h.

#define MOZ_STATIC_ASSERT_GLUE (   x,
 
)    MOZ_STATIC_ASSERT_GLUE1(x, y)

Definition at line 90 of file Assertions.h.

#define MOZ_STATIC_ASSERT_GLUE1 (   x,
 
)    x##y

Definition at line 89 of file Assertions.h.

#define MOZ_STATIC_ASSERT_IF (   cond,
  expr,
  reason 
)    MOZ_STATIC_ASSERT(!(cond) || (expr), reason)

Definition at line 128 of file Assertions.h.


Function Documentation

MFBT_API ( void  )

Variable Documentation

const char* file

Definition at line 138 of file Assertions.h.

const char int ln

Definition at line 138 of file Assertions.h.