Code Search for Developers
 
 
  

CONDITION.h from Magnus at Krugle


Show CONDITION.h syntax highlighted

#ifndef __CONDITION_H__
#define __CONDITION_H__

#define WARNING 1
#define ERROR   2

#include "Afx.h"

void debugMessage( int msgType, bool condition, const char *condDescription, 
		   const char *fileName, int lineno );

//#define PRECONDITION(type,condition)	debugMessage( (type), (condition), "PRECONDITION "###condition, __FILE__, __LINE__)
#define PRECONDITION(type,condition)	debugMessage( (type), (condition), "PRECONDITION "#condition, __FILE__, __LINE__)
#define CONDITION(type,condition)	debugMessage( (type), (condition), "CONDITION "#condition, __FILE__, __LINE__)



/*
 * @dp old macros:
#define __DP_ASSERT(header,type,condition)    \
  do {					\
   if( !(condition) ) {			\
      cout << endl;			\
      if( (type) == WARNING )		\
        cout << "WARNING: ";		\
      else if( (type) == ERROR )	\
        cout << "ERROR: ";		\
    cout << endl << __FILE__ << ":" << __LINE__ << ": " \
	 << header << " \"" << #condition << "\" is false." << endl; \
   }					\
  } while( 0 )


#define PRECONDITION(type,condition)	__DP_ASSERT("PRECONDITION",(type),(condition))
#define CONDITION(type,condition)	__DP_ASSERT("CONDITION",(type),(condition))
*/
#endif




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.h
  APofFreeGroups.h
  APofFreeGroupsRep.h
  APwithOneRelator.h
  APwithOneRelatorRep.h
  AmalgamatedProductParser.h
  CONDITION.h
  HNNExtOfFreeGroup.h
  HNNExtOfORGroup.h
  HNNExtension.h
  HNNParser.h
  MagnusBreakdown.h
  Margin.h
  ORProblems.h
  OneRelatorGroup.h
  OneRelatorGroupWithTorsion.h
  Range.h
  ShortenByRelators2.h
  SubgroupOfOneRelatorGroup.h
  SuperGen.h
  Whitehead.h