aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/HashMap$3.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-01-10 12:44:08 +0000
committerKostya Serebryany <kcc@gcc.gnu.org>2013-01-10 12:44:08 +0000
commite9772e16b39885fb70f6e3651a0b98d6de8655c3 (patch)
tree23cebf7ab15836f70e055aee309f853c0c377de6 /libjava/java/util/HashMap$3.h
parente1f674e4c21be4834cfad53666b5b7a9492cf0a5 (diff)
downloadgcc-e9772e16b39885fb70f6e3651a0b98d6de8655c3.zip
gcc-e9772e16b39885fb70f6e3651a0b98d6de8655c3.tar.gz
gcc-e9772e16b39885fb70f6e3651a0b98d6de8655c3.tar.bz2
libsanitizer mege from upstream r171973
From-SVN: r195083
Diffstat (limited to 'libjava/java/util/HashMap$3.h')
0 files changed, 0 insertions, 0 deletions
s="hl kwd">FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #ifndef ASSERTING #ifdef NDEBUG #define ASSERTING 0 #else #define ASSERTING 1 #endif #endif extern unsigned int assertion_failures; #define ASSERTED ( ASSERTING && ( assertion_failures != 0 ) ) /** printf() for assertions * * This function exists so that the assert() macro can expand to * printf() calls without dragging the printf() prototype into scope. * * As far as the compiler is concerned, assert_printf() and printf() are * completely unrelated calls; it's only at the assembly stage that * references to the assert_printf symbol are collapsed into references * to the printf symbol. */ extern int __attribute__ (( format ( printf, 1, 2 ) )) assert_printf ( const char *fmt, ... ) asm ( "printf" ); /** * Assert a condition at run-time. * * If the condition is not true, a debug message will be printed. * Assertions only take effect in debug-enabled builds (see DBG()). * * @todo Make an assertion failure abort the program * */ #define assert( condition ) \ do { \ if ( ASSERTING && ! (condition) ) { \ assertion_failures++; \ assert_printf ( "assert(%s) failed at %s line %d\n", \ #condition, __FILE__, __LINE__ ); \ } \ } while ( 0 ) /** * Assert a condition at link-time. * * If the condition is not true, the link will fail with an unresolved * symbol (error_symbol). * * This macro is iPXE-specific. Do not use this macro in code * intended to be portable. * */ #define linker_assert( condition, error_symbol ) \ if ( ! (condition) ) { \ extern void error_symbol ( void ); \ error_symbol(); \ } #endif /* _ASSERT_H */