Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/assert.c

    r875a72f r91c389a  
    1717#include <stdarg.h>                                                             // varargs
    1818#include <stdio.h>                                                              // fprintf
    19 #include "bits/debug.h"
     19#include "libhdr/libdebug.h"
    2020
    2121extern "C" {
     
    2626        // called by macro assert in assert.h
    2727        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 );
    2929                abort();
    3030        }
     
    3232        // called by macro assertf
    3333        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 );
    3636
    3737                va_list args;
    3838                va_start( args, fmt );
    39                 __cfaabi_dbg_bits_print_vararg( fmt, args );
     39                __lib_debug_print_vararg( fmt, args );
    4040                va_end( args );
    4141
    42                 __cfaabi_dbg_bits_print_nolock( "\n" );
    43                 __cfaabi_dbg_bits_release();
     42                __lib_debug_print_nolock( "\n" );
     43                __lib_debug_release();
    4444                abort();
    4545        }
Note: See TracChangeset for help on using the changeset viewer.