Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/assert.cfa

    r1c40091 r73abe95  
    1010// Created On       : Mon Nov 28 12:27:26 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Nov 21 17:09:26 2019
    13 // Update Count     : 5
     12// Last Modified On : Thu Jul 20 15:10:26 2017
     13// Update Count     : 2
    1414//
    1515
     
    1717#include <stdarg.h>                                                             // varargs
    1818#include <stdio.h>                                                              // fprintf
    19 #include <unistd.h>                                                             // STDERR_FILENO
    2019#include "bits/debug.hfa"
    2120
     
    2726        // called by macro assert in assert.h
    2827        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 );
    3029                abort();
    3130        }
     
    3332        // called by macro assertf
    3433        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 );
    3736
    3837                va_list args;
    3938                va_start( args, fmt );
    40                 __cfaabi_bits_print_vararg( STDERR_FILENO, fmt, args );
     39                __cfaabi_dbg_bits_print_vararg( fmt, args );
    4140                va_end( args );
    4241
    43                 __cfaabi_bits_print_nolock( STDERR_FILENO, "\n" );
    44                 __cfaabi_bits_release();
     42                __cfaabi_dbg_bits_print_nolock( "\n" );
     43                __cfaabi_dbg_bits_release();
    4544                abort();
    4645        }
Note: See TracChangeset for help on using the changeset viewer.