cpprisc16  March 16, 2017
 All Namespaces Files Functions Variables Typedefs Macros
Macros
assert.hpp File Reference

Helper assertions. More...

#include <cstdint>
Include dependency graph for assert.hpp:

Go to the source code of this file.

Macros

#define ASSERT_3_DIFFERENT(a, b, c)
 Check if a, b and c are different. More...
 
#define ASSERT_4_DIFFERENT(a, b, c, d)
 Check if a, b, c and d are different. More...
 
#define ASSERT_5_DIFFERENT(a, b, c, d, e)
 Check if a, b, c, d and e are different. More...
 
#define ASSERT_6_DIFFERENT(a, b, c, d, e, f)
 Check if a, b, c, d, e and f are different. More...
 
#define ASSERT_7_DIFFERENT(a, b, c, d, e, f, g)
 Check if a, b, c, d, e, f and g are different. More...
 

Detailed Description

Helper assertions.

(March 12, 2017) Piece of cpprisc16. https://bitbucket.org/OPiMedia/cpprisc16

GPLv3 — Copyright (C) 2017 Olivier Pirson http://www.opimedia.be/

Definition in file assert.hpp.

Macro Definition Documentation

#define ASSERT_3_DIFFERENT (   a,
  b,
 
)
Value:
{ \
assert(a != b); \
assert(a != c); \
\
assert(b != c); \
}

Check if a, b and c are different.

Definition at line 26 of file assert.hpp.

#define ASSERT_4_DIFFERENT (   a,
  b,
  c,
 
)
Value:
{ \
assert(a != b); \
assert(a != c); \
assert(a != d); \
\
assert(b != c); \
assert(b != d); \
\
assert(c != d); \
}

Check if a, b, c and d are different.

Definition at line 37 of file assert.hpp.

#define ASSERT_5_DIFFERENT (   a,
  b,
  c,
  d,
 
)
Value:
{ \
assert(a != b); \
assert(a != c); \
assert(a != d); \
assert(a != e); \
\
assert(b != c); \
assert(b != d); \
assert(b != e); \
\
assert(c != d); \
assert(c != e); \
\
assert(d != e); \
}

Check if a, b, c, d and e are different.

Definition at line 52 of file assert.hpp.

#define ASSERT_6_DIFFERENT (   a,
  b,
  c,
  d,
  e,
 
)
Value:
{ \
assert(a != b); \
assert(a != c); \
assert(a != d); \
assert(a != e); \
assert(a != f); \
\
assert(b != c); \
assert(b != d); \
assert(b != e); \
assert(b != f); \
\
assert(c != d); \
assert(c != e); \
assert(c != f); \
\
assert(d != e); \
assert(d != f); \
\
assert(e != f); \
}

Check if a, b, c, d, e and f are different.

Definition at line 72 of file assert.hpp.

#define ASSERT_7_DIFFERENT (   a,
  b,
  c,
  d,
  e,
  f,
 
)
Value:
{ \
assert(a != b); \
assert(a != c); \
assert(a != d); \
assert(a != e); \
assert(a != f); \
assert(a != g); \
\
assert(b != c); \
assert(b != d); \
assert(b != e); \
assert(b != f); \
assert(b != g); \
\
assert(c != d); \
assert(c != e); \
assert(c != f); \
assert(c != g); \
\
assert(d != e); \
assert(d != f); \
assert(d != g); \
\
assert(e != f); \
assert(e != g); \
\
assert(f != g); \
}

Check if a, b, c, d, e, f and g are different.

Definition at line 98 of file assert.hpp.