Changes in libcfa/src/assert.cfa [1c40091:73abe95]
- File:
-
- 1 edited
-
libcfa/src/assert.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/assert.cfa
r1c40091 r73abe95 10 10 // Created On : Mon Nov 28 12:27:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Nov 21 17:09:26 201913 // Update Count : 512 // Last Modified On : Thu Jul 20 15:10:26 2017 13 // Update Count : 2 14 14 // 15 15 … … 17 17 #include <stdarg.h> // varargs 18 18 #include <stdio.h> // fprintf 19 #include <unistd.h> // STDERR_FILENO20 19 #include "bits/debug.hfa" 21 20 … … 27 26 // called by macro assert in assert.h 28 27 void __assert_fail( const char *assertion, const char *file, unsigned int line, const char *function ) { 29 __cfaabi_ bits_print_safe( STDERR_FILENO,CFA_ASSERT_FMT ".\n", assertion, __progname, function, line, file );28 __cfaabi_dbg_bits_print_safe( CFA_ASSERT_FMT ".\n", assertion, __progname, function, line, file ); 30 29 abort(); 31 30 } … … 33 32 // called by macro assertf 34 33 void __assert_fail_f( const char *assertion, const char *file, unsigned int line, const char *function, const char *fmt, ... ) { 35 __cfaabi_ bits_acquire();36 __cfaabi_ bits_print_nolock( STDERR_FILENO,CFA_ASSERT_FMT ": ", assertion, __progname, function, line, file );34 __cfaabi_dbg_bits_acquire(); 35 __cfaabi_dbg_bits_print_nolock( CFA_ASSERT_FMT ": ", assertion, __progname, function, line, file ); 37 36 38 37 va_list args; 39 38 va_start( args, fmt ); 40 __cfaabi_ bits_print_vararg( STDERR_FILENO,fmt, args );39 __cfaabi_dbg_bits_print_vararg( fmt, args ); 41 40 va_end( args ); 42 41 43 __cfaabi_ bits_print_nolock( STDERR_FILENO,"\n" );44 __cfaabi_ bits_release();42 __cfaabi_dbg_bits_print_nolock( "\n" ); 43 __cfaabi_dbg_bits_release(); 45 44 abort(); 46 45 }
Note:
See TracChangeset
for help on using the changeset viewer.