Changeset 9f1ad33 in tol


Ignore:
Timestamp:
Mar 25, 2011, 2:15:12 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
eb5dfc6
Parents:
b0b8f73
Message:

Fixes #1143

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/out.cpp

    rb0b8f73 r9f1ad33  
    386386//--------------------------------------------------------------------
    387387{
     388  if(!BOut::IsEnabled() || (!BOut::errorHci_ && !BOut::errorTerm_)) { return; }
    388389  if(!BOut::IsEnabled()) { return; }
    389390  /*BText info =  "\nERROR: ";
    … …  
    406407//--------------------------------------------------------------------
    407408{
    408   if(!BOut::IsEnabled()) { return; }
     409  if(!BOut::IsEnabled() || (!BOut::warningHci_ && !BOut::warningTerm_)) { return; }
    409410  /*BText info =  "\nWARNING: ";
    410411  info += txt + "\n";*/
    … …  
    424425//--------------------------------------------------------------------
    425426{
    426   if(!BOut::IsEnabled()) { return; }
     427  if(!BOut::IsEnabled() || (!BOut::warningHci_ && !BOut::warningTerm_)) { return; }
    427428  BText info = I2("\nDeprecated: ","\nDesaprobado: ");
    428429  info += txt + "\n";
    … …  
    438439//--------------------------------------------------------------------
    439440{
    440   if(!BOut::IsEnabled()) { return; }
     441  if(!BOut::IsEnabled() || (!BOut::stdHci_ && !BOut::stdTerm_)) { return; }
    441442  BOut::Write(txt, BOut::stdHci_, BOut::stdTerm_);
    442443}
    … …  
    447448void Info(const BText& txt)
    448449{
    449   if(!BOut::IsEnabled()) { return; }
     450  if(!BOut::IsEnabled() || (!BOut::infoHci_ && !BOut::infoTerm_)) { return; }
    450451  BOut::Write(txt, BOut::infoHci_, BOut::infoTerm_);
    451452}
    … …  
    471472//--------------------------------------------------------------------
    472473{
    473   if(!BOut::IsEnabled()) { return; }
     474  if(!BOut::IsEnabled() || (!BOut::traceHci_ && !BOut::traceTerm_)) { return; }
    474475  BText info = BText("\nTRACE ") +SystemInfo() + "\n" + txt + "\n";
    475476  BOut::Write(info, BOut::traceHci_, BOut::traceTerm_);
    … …  
    500501//--------------------------------------------------------------------
    501502{
    502   if(!BOut::IsEnabled()) { return; }
     503  if(!BOut::IsEnabled() || (!hci && !term)) { return; }
    503504  if(hci)
    504505  {
    … …  
    515516    }
    516517  }
    517   if(BOut::HasDumpFile()&&file_)
     518  if(BOut::HasDumpFile() && file_)
    518519  {
    519520    fprintf(file_,"%s",txt.String());
    … …  
    521522  }
    522523}
    523 
    524524
    525525//--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.