File: Impossible.h

package info (click to toggle)
macromoleculebuilder 4.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 119,404 kB
  • sloc: cpp: 23,722; python: 5,098; ansic: 2,101; awk: 145; perl: 144; makefile: 40; sh: 38
file content (13 lines) | stat: -rw-r--r-- 227 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef Impossible_H_
#define Impossible_H_

#include <cassert>
#include <cstdlib>

#ifdef NDEBUG
    #define __IMPOSSIBLE__ std::abort()
#else
    #define __IMPOSSIBLE__ assert(false)
#endif // NDEBUG

#endif // Impossible_H_