/usr/include/ITK-4.5/vcl_deprecated.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 52 53 54 55 | #ifndef vcl_deprecated_h_
#define vcl_deprecated_h_
//:
// \file
// \brief Defines macros used for marking deprecated functions
// \author Amitha Perera
// \date 27 May 2001
//
// To mark a function as deprecated, use the macro VXL_DEPRECATED as
// the first line of that function:
// \code
// void a::f() {
// VXL_DEPRECATED( "a::f()" );
// ...
// }
// \endcode
//
// If VXL_WARN_DEPRECATED was not defined at compile time, nothing
// happens. If it was defined, then executing the function will result
// in runtime warnings. The default behaviour is to warn every time
// the function is called. Additionally, if VXL_WARN_DEPRECATED_ONCE
// was defined, the warning will only be issued on the first call. If
// VXL_WARN_DEPRECATED_ABORT was defined, the function will abort()
// when called.
//
// Since the C++ language does not have support for deprecation, the
// surest way to find out _where_ the deprecated function is called is
// to define VXL_WARN_DEPRECATED_ABORT and then do a stack trace using
// a debugger!
#ifdef VXL_WARN_DEPRECATED
void vcl_deprecated_warn( const char* func_name );
void vcl_deprecated_abort( const char* func_name );
#ifdef VXL_WARN_DEPRECATED_ABORT
#define VXL_DEPRECATED(f) vcl_deprecated_abort( f )
#else
#ifdef VXL_WARN_DEPRECATED_ONCE
#define VXL_DEPRECATED(f) \
do { \
static bool vcl_deprecated_flag = true; \
if( vcl_deprecated_flag ) { \
vcl_deprecated_warn( f ); \
vcl_deprecated_flag=false; \
} \
} while (0)
#else
#define VXL_DEPRECATED(f) vcl_deprecated_warn( f )
#endif
#endif
#else
#define VXL_DEPRECATED(f) /* suppress deprecation warning */
#endif
#endif
|