mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 05:40:59 +00:00
* 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:
parent
6226f89571
commit
2090c47bfa
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user