home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
n
/
newmat06.zip
/
BOOLEAN.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-07
|
504b
|
27 lines
//$$ boolean.h Boolean class
#ifndef Boolean_LIB
#define Boolean_LIB 0
class Boolean
{
int value;
public:
Boolean(const int b) { value = b ? 1 : 0; }
Boolean(const void* b) { value = b ? 1 : 0; }
Boolean() {}
operator int() const { return value; }
int operator!() const { return !value; }
FREE_CHECK(Boolean);
};
#ifndef GXX
const Boolean TRUE = 1;
const Boolean FALSE = 0;
#else
#define FALSE 0
#define TRUE 1
#endif
#endif