Changeset 0156cdd


Ignore:
Timestamp:
Sep 7, 2021, 12:25:28 PM (5 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
master
Children:
1341ce1
Parents:
180f249
Message:

Initial fix to fstreams not throwing in release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.cfa

    r180f249 r0156cdd  
    124124void open( ofstream & os, const char name[], const char mode[] ) {
    125125        FILE * file = fopen( name, mode );
    126         #ifdef __CFA_DEBUG__
     126        // #ifdef __CFA_DEBUG__
    127127        if ( file == 0p ) {
    128128                throw (Open_Failure){ os };
    129129                // abort | IO_MSG "open output file \"" | name | "\"" | nl | strerror( errno );
    130130        } // if
    131         #endif // __CFA_DEBUG__
     131        // #endif // __CFA_DEBUG__
    132132        (os){ file };
    133133} // open
     
    262262void open( ifstream & is, const char name[], const char mode[] ) {
    263263        FILE * file = fopen( name, mode );
    264         #ifdef __CFA_DEBUG__
     264        // #ifdef __CFA_DEBUG__
    265265        if ( file == 0p ) {
    266266                throw (Open_Failure){ is };
    267267                // abort | IO_MSG "open input file \"" | name | "\"" | nl | strerror( errno );
    268268        } // if
    269         #endif // __CFA_DEBUG__
     269        // #endif // __CFA_DEBUG__
    270270        is.file$ = file;
    271271} // open
Note: See TracChangeset for help on using the changeset viewer.