Code Search for Developers
 
 
  

CONDITION.C from Magnus at Krugle


Show CONDITION.C syntax highlighted

#include <iostream>
#include "CONDITION.h"

void debugMessage( int msgType, bool condition, const char *condDescription, 
		   const char *fileName, int lineno )
{
  if( !condition ) {

    cerr << endl;

    switch( msgType ) {
    case WARNING:
      cerr << "WARNING: ";
      break;
    case ERROR:
      cerr << "ERROR: ";
      break;
    default:
      cerr << "UNIDENTIFIED ERROR: ";
    }

    cerr << fileName << ":" << lineno << ": " << condDescription << " is false." 
	 << endl << endl;

    if( msgType != WARNING ) {
      while( 1 )
	;
      exit(1);
    }
  }
}




See more files for this project here

Magnus

Magnus is a special purpose mathematical package for Infinite Group Theory computations

Project homepage: http://sourceforge.net/projects/magnus
Programming language(s): C,C++
License: other

  AP-fixups.C
  APofFreeGroupsRep.C
  APwithOneRelatorRep.C
  AmalgamatedProductParser.C
  CONDITION.C
  HNNExtOfFreeGroup.C
  HNNExtOfORGroup.C
  HNNExtension.C
  HNNParser.C
  MagnusBreakdown.C
  Margin.C
  ORProblems.C
  OneRelatorGroup.C
  OneRelatorGroupWithTorsion.C
  Range.C
  ShortenByRelators2.C
  SubgroupOfOneRelatorGroup.C
  SuperGen.C
  Whitehead.C
  maximalRoot.C