Changeset 66d043 in git for factory/int_cf.h


Ignore:
Timestamp:
Mar 27, 1997, 11:04:57 AM (27 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
32e9cd7e1db25624413ec07ffbed129f761df364
Parents:
20040f7073460712e95d84beff001cd530024534
Message:
stream-io wrapped by NOSTREAMIO
debug output changed to ASSERT
PVIRT fucntionality moved to assert.h


git-svn-id: file:///usr/local/Singular/svn/trunk@104 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/int_cf.h

    r20040f r66d043  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: int_cf.h,v 1.0 1996-05-17 10:59:41 stobbe Exp $
     2// $Id: int_cf.h,v 1.1 1997-03-27 10:04:57 schmidt Exp $
    33
    44#ifndef INCL_INTERNALCF_H
     
    77/*
    88$Log: not supported by cvs2svn $
     9Revision 1.0  1996/05/17 10:59:41  stobbe
     10Initial revision
     11
    912*/
    1013
     14#ifndef NOSTREAMIO
    1115#include <iostream.h>
     16#endif /* NOSTREAMIO */
     17
     18#include "assert.h"
     19
    1220#include "cf_defs.h"
     21
    1322#include "variable.h"
    1423
    1524class CanonicalForm;
    16 
    17 #ifdef NDEBUG
    18 #define PVIRT_VOID(msg) = 0
    19 #define PVIRT_INTCF(msg) = 0
    20 #define PVIRT_BOOL(msg) = 0
    21 #define PVIRT_INT(msg) = 0
    22 #define PVIRT_CHARCC(msg) = 0
    23 #else
    24 #define PVIRT_VOID(msg) { cerr << "pure method(" << msg << ") called" << endl; }
    25 #define PVIRT_INTCF(msg) { cerr << "pure method(" << msg << ") called" << endl; return 0; }
    26 #define PVIRT_BOOL(msg) { cerr << "pure method(" << msg << ") called" << endl; return false; }
    27 #define PVIRT_INT(msg) { cerr << "pure method(" << msg << ") called" << endl; return 0; }
    28 #define PVIRT_CHARCC(msg) { cerr << "pure method(" << msg << ") called" << endl; return 0; }
    29 #endif
    3025
    3126class InternalCF {
     
    4035    InternalCF( const InternalCF& )
    4136    {
    42         cerr << "ups there is something wrong in your code" << endl;
    43     }; 
     37        ASSERT( 0, "ups there is something wrong in your code");
     38    };
    4439    virtual ~InternalCF() {};
    4540    int deleteObject() { return decRefCount() == 0; }
     
    5348    virtual int type() const { return UndefinedDomain; }
    5449    virtual Variable variable() const { return Variable(); }
     50#ifndef NOSTREAMIO
    5551    virtual void print( ostream&, char* ) PVIRT_VOID("print");
     52#endif /* NOSTREAMIO */
    5653    virtual bool inBaseDomain() const { return true; }
    5754    virtual bool inExtension() const { return false; }
Note: See TracChangeset for help on using the changeset viewer.