home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Divers
/
lyx-0.13.2.tar.gz
/
lyx-0.13.2.tar
/
lyx-0.13.2
/
src
/
LAssert.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-23
|
440b
|
28 lines
// -*- C++ -*-
#ifndef _LASSERT_H_
#define _LASSERT_H_
#define HAVE_TEMPLATE
#ifdef HAVE_TEMPLATE
//template<class X, class A> inline void Assert(A assertion)
template<class A> inline void Assert(A assertion)
{
//if (!assertion) throw X();
if (!assertion) abort();
}
//template<class A, class E> inline void Assert(A assertion, E except)
//{
// if (!assertion) except;
//}
#else
inline void Assert(...)
{
// nothing
}
#endif
#endif