19 #ifndef LIBCWD_CONFIG_H 20 #define LIBCWD_CONFIG_H 78 #define CWDEBUG_ALLOC 1 101 #define CWDEBUG_MAGIC (CWDEBUG_ALLOC && 1) 130 #define CWDEBUG_GLIBCXX_DEBUG 0 158 #define CWDEBUG_LOCATION 1 210 #define CWDEBUG_LIBBFD (CWDEBUG_LOCATION && 0) 230 #define CWDEBUG_DEBUG 0 253 #define CWDEBUG_DEBUGOUTPUT (CWDEBUG_DEBUG && 1) 273 #define CWDEBUG_DEBUGM (CWDEBUG_ALLOC && CWDEBUG_DEBUG && 0) 292 #define CWDEBUG_MARKER (CWDEBUG_ALLOC && 1) 298 #define LIBCWD_HAVE_PTHREAD 301 #define LIBCWD_HAVE___LIBC_MALLOC 302 #undef LIBCWD_HAVE__LIBC_MALLOC 303 #define LIBCWD_HAVE_DLOPEN 304 #define LIBCWD_HAVE_POSIX_MEMALIGN 305 #define LIBCWD_HAVE_ALIGNED_ALLOC 306 #define LIBCWD_HAVE_MEMALIGN 307 #define LIBCWD_HAVE_VALLOC 308 #if defined(LIBCWD_HAVE___LIBC_MALLOC) || defined(LIBCWD_HAVE__LIBC_MALLOC) || defined(LIBCWD_HAVE_DLOPEN) 309 #define LIBCWD_USE_EXTERNAL_C_LINKAGE_FOR_MALLOC 313 #if LIBCWD_THREAD_SAFE 315 #define LIBCWD_DO_MAX 8 // Maximal total number of debug objects in a single application. 317 #define LIBCWD_DC_MAX 256 // Maximal total number of debug channels in a single application. 341 #define CWDEBUG_DEBUGT 0 342 #else // !LIBCWD_THREAD_SAFE 343 #define LIBCWD_THREAD_SAFE 0 344 #define CWDEBUG_DEBUGT 0 345 #endif // !LIBCWD_THREAD_SAFE 354 static unsigned long const config_signature_header_c =
380 #if CWDEBUG_DEBUGOUTPUT 383 (512 * (1 + 128 * (1 + 128 * 1))));
385 extern unsigned long get_config_signature_lib_c(
void) __attribute__((
const));
386 extern void conf_check_failed(
void);
387 extern void version_check_failed(
void);
404 check_configuration(
void) {
405 if (get_config_signature_lib_c() != config_signature_header_c)
407 if (get_config_signature_lib_c() / 512 != config_signature_header_c / 512)
408 version_check_failed();
415 #endif // __cplusplus 417 #endif // LIBCWD_CONFIG_H namespace for libcwd.
Definition: debug.cc:87