Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Lyx/src/   (Lyx Latech Document Processor ©)  Datei vom 26.9.1998 mit Größe 762 B image not shown  

Quelle  error.C

  Sprache: C
 

#include <config.h>

#ifdef __GNUG__
#pragma implementation
#endif

#include "error.h"
#include <stdio.h>

//  $Id: error.C,v 1.1.1.1 1998/04/20 21:14:47 larsbj Exp $

#if !defined(lint) && !defined(WITH_WARNINGS)
static char vcid[] = "$Id: error.C,v 1.1.1.1 1998/04/20 21:14:47 larsbj Exp $";
#endif /* lint */

Error::Error(int level) // should loglevel also be an argument?
{
 debuglevel = level;
 loglevel = 0;
}


void Error::setDebugLevel(int level)
{
 debuglevel = level;
}


void Error::debug(LString const & msg, int level)
{
 if (debuglevel & level)
  print(msg);
 // should also print to the logfile
}

void Error::print(LString const & msg)
{
 if (!msg.empty()) 
  fprintf(stderr, "%s\n", msg.c_str());
}



Messung V0.5 in Prozent
C=91 H=98 G=94

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.