Changeset 437a0af in tol for tol/bbasic/out.cpp


Ignore:
Timestamp:
Jan 5, 2011, 2:18:37 PM (16 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
beb3a50
Parents:
6562295
Message:

closes #1051

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2980 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/out.cpp

    r6562295 r437a0af  
    9292//--------------------------------------------------------------------
    9393BTraceInit("out.cpp");
    94 BHciWriter BOut::hciWriter_;
    95 BHciWriter BOut::logHciWriter_;
     94BHciWriter BOut::hciWriter_=NULL;
     95BHciWriter BOut::logHciWriter_=NULL;
     96BHciWriterEx BOut::hciWriterEx_=NULL;
     97BHciWriterEx BOut::logHciWriterEx_=NULL;
     98void*      BOut::hciWriterExData_=NULL;
     99void*      BOut::logHciWriterExData_=NULL;
    96100BBool      BOut::initialized_;
    97101BBool      BOut::enabled_;
    … …  
    145149    BOut::hciWriter_   = NIL;
    146150    BOut::logHciWriter_ = NIL;
     151    BOut::hciWriterEx_   = NIL;
     152    BOut::logHciWriterEx_ = NIL;
     153    BOut::hciWriterExData_   = NIL;
     154    BOut::logHciWriterExData_ = NIL;
    147155    BOut::errorOpenTag_    = "<E>\nERROR: ";
    148156    BOut::errorCloseTag_   = "</E>\n";
    … …  
    524532{
    525533  if(!BOut::IsEnabled()) { return; }
    526   if(hciWriter_)    { (*hciWriter_)(txt); }
     534  if(hciWriter_) {
     535    (*hciWriter_)(txt);
     536  } else if( hciWriterEx_ ) {
     537    (*hciWriterEx_)( txt, hciWriterExData_ );   
     538  }
    527539}
    528540
    … …  
    535547//--------------------------------------------------------------------
    536548{
    537   if(logHciWriter_) { (*logHciWriter_)(txt); }
    538   else              { Std(txt); }
     549  if( logHciWriter_ ) {
     550    (*logHciWriter_)(txt);
     551  } else if ( logHciWriterEx_ ) {
     552    (*logHciWriterEx_)( txt, logHciWriterExData_ );
     553  } else {
     554    Std( txt );
     555  }
    539556}
    540557
Note: See TracChangeset for help on using the changeset viewer.