Changes in libcfa/src/assert.cfa [032234bd:e3fea42]
- File:
-
- 1 edited
-
libcfa/src/assert.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/assert.cfa
r032234bd re3fea42 19 19 #include <unistd.h> // STDERR_FILENO 20 20 #include "bits/debug.hfa" 21 #include "bits/defs.hfa"22 21 23 22 extern "C" { … … 27 26 28 27 // called by macro assert in assert.h 29 // would be cool to remove libcfa_public but it's needed for libcfathread 30 void __assert_fail( const char assertion[], const char file[], unsigned int line, const char function[] ) libcfa_public { 28 void __assert_fail( const char assertion[], const char file[], unsigned int line, const char function[] ) { 31 29 __cfaabi_bits_print_safe( STDERR_FILENO, CFA_ASSERT_FMT ".\n", assertion, __progname, function, line, file ); 32 30 abort(); … … 34 32 35 33 // called by macro assertf 36 // would be cool to remove libcfa_public but it's needed for libcfathread 37 void __assert_fail_f( const char assertion[], const char file[], unsigned int line, const char function[], const char fmt[], ... ) libcfa_public { 34 void __assert_fail_f( const char assertion[], const char file[], unsigned int line, const char function[], const char fmt[], ... ) { 38 35 __cfaabi_bits_acquire(); 39 36 __cfaabi_bits_print_nolock( STDERR_FILENO, CFA_ASSERT_FMT ": ", assertion, __progname, function, line, file );
Note:
See TracChangeset
for help on using the changeset viewer.