/usr/include/ITK-4.5/vcl_cassert.h is in libinsighttoolkit4-dev 4.5.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | // This is vcl/vcl_cassert.h
//- The <cassert> header does not
//- have inclusion guards. The
//- C and C++ standards say so.
//:
// \file
// \author fsm
#include "vcl_compiler.h"
// This header file should do something like this:
// #undef assert
// #ifdef NDEBUG
// # define assert(x) ((void) 0)
// #else
// extern void vcl_cassert_failure(char const *, int, char const *);
// # define assert(x) do { if (!(x)) vcl_cassert_failure(__FILE__, __LINE__, #x); } while (false)
// #endif
// If the system/compiler version works, use that instead.
// Only redefine the macro with MSVC 6.0
#ifdef VCL_VC_6
# undef assert
# ifdef NDEBUG
# define assert(x) ((void) 0)
# else
extern void vcl_cassert_failure(char const *, int, char const *);
# define assert(x) do { if (!(x)) vcl_cassert_failure(__FILE__, __LINE__, #x); } while (false)
# endif
#else // For all other compilers, include the standard C/CXX header
# ifdef VCL_METRO_WERKS
// for some reason, MW's <cassert> doesn't have its own printf() and abort() declarations.
# include <vcl_cstdio.h>
# include <vcl_cstdlib.h>
# endif
# if !VCL_CXX_HAS_HEADER_CASSERT
# include <assert.h>
# else
# include "iso/vcl_cassert.h"
# endif
#endif
// fsm: There should not be a vcl_assert macro as there is no
// std::assert symbol. If your assert macro is broken, fix it
// here using #undef and #define.
|