From 2090c47bfaf0a5d479ab3d29fd2a57d12b062a18 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Tue, 29 Apr 2008 14:56:27 +0000 Subject: [PATCH] * 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 --- src/support/assert.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/support/assert.h b/src/support/assert.h index cb1ac579fb..4322448b0b 100644 --- a/src/support/assert.h +++ b/src/support/assert.h @@ -13,6 +13,7 @@ #ifndef LASSERT_H #define LASSERT_H +#ifdef __cplusplus namespace lyx { 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) \ if (expr) {} else { lyx::doAssert(#expr, __FILE__, __LINE__); escape; } - +#endif #endif // LASSERT