Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/assert.cfa

    r032234bd re3fea42  
    1919#include <unistd.h>                                                             // STDERR_FILENO
    2020#include "bits/debug.hfa"
    21 #include "bits/defs.hfa"
    2221
    2322extern "C" {
     
    2726
    2827        // 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[] ) {
    3129                __cfaabi_bits_print_safe( STDERR_FILENO, CFA_ASSERT_FMT ".\n", assertion, __progname, function, line, file );
    3230                abort();
     
    3432
    3533        // 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[], ... ) {
    3835                __cfaabi_bits_acquire();
    3936                __cfaabi_bits_print_nolock( STDERR_FILENO, CFA_ASSERT_FMT ": ", assertion, __progname, function, line, file );
Note: See TracChangeset for help on using the changeset viewer.