* in the very uncommon case the header is inserted into plain C code... The cleaner solution maybe would be to rename assert to lassert.h to avoid the clash with the system assert.h

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24554 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-04-29 14:56:27 +00:00
parent 6226f89571
commit 2090c47bfa

View File

@ -13,6 +13,7 @@
#ifndef LASSERT_H #ifndef LASSERT_H
#define LASSERT_H #define LASSERT_H
#ifdef __cplusplus
namespace lyx { namespace lyx {
void doAssert(char const * expr, char const * file, long line); void doAssert(char const * expr, char const * file, long line);
@ -21,6 +22,6 @@ void doAssert(char const * expr, char const * file, long line);
#define LASSERT(expr, escape) \ #define LASSERT(expr, escape) \
if (expr) {} else { lyx::doAssert(#expr, __FILE__, __LINE__); escape; } if (expr) {} else { lyx::doAssert(#expr, __FILE__, __LINE__); escape; }
#endif
#endif // LASSERT #endif // LASSERT