Changes in src/libcfa/assert.c [875a72f:91c389a]
- File:
-
- 1 edited
-
src/libcfa/assert.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/assert.c
r875a72f r91c389a 17 17 #include <stdarg.h> // varargs 18 18 #include <stdio.h> // fprintf 19 #include " bits/debug.h"19 #include "libhdr/libdebug.h" 20 20 21 21 extern "C" { … … 26 26 // called by macro assert in assert.h 27 27 void __assert_fail( const char *assertion, const char *file, unsigned int line, const char *function ) { 28 __ cfaabi_dbg_bits_print_safe( CFA_ASSERT_FMT ".\n", __progname, function, line, file );28 __lib_debug_print_safe( CFA_ASSERT_FMT ".\n", __progname, function, line, file ); 29 29 abort(); 30 30 } … … 32 32 // called by macro assertf 33 33 void __assert_fail_f( const char *assertion, const char *file, unsigned int line, const char *function, const char *fmt, ... ) { 34 __ cfaabi_dbg_bits_acquire();35 __ cfaabi_dbg_bits_print_nolock( CFA_ASSERT_FMT ": ", __progname, function, line, file );34 __lib_debug_acquire(); 35 __lib_debug_print_nolock( CFA_ASSERT_FMT ": ", __progname, function, line, file ); 36 36 37 37 va_list args; 38 38 va_start( args, fmt ); 39 __ cfaabi_dbg_bits_print_vararg( fmt, args );39 __lib_debug_print_vararg( fmt, args ); 40 40 va_end( args ); 41 41 42 __ cfaabi_dbg_bits_print_nolock( "\n" );43 __ cfaabi_dbg_bits_release();42 __lib_debug_print_nolock( "\n" ); 43 __lib_debug_release(); 44 44 abort(); 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.