* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
* \author Allan Rae
*
* Full author contact details are available in file CREDITS.
#include "Bullet.h"
-#include <boost/assert.hpp>
+#include "support/lassert.h"
using namespace std;
void Bullet::testInvariant() const
{
#ifdef ENABLE_ASSERTIONS
- BOOST_ASSERT(font >= MIN);
- BOOST_ASSERT(font < FONTMAX);
- BOOST_ASSERT(character >= MIN);
- BOOST_ASSERT(character < CHARMAX);
- BOOST_ASSERT(size >= MIN);
- BOOST_ASSERT(size < SIZEMAX);
- BOOST_ASSERT(user_text >= -1);
- BOOST_ASSERT(user_text <= 1);
+ LATTEST(font >= MIN);
+ LATTEST(font < FONTMAX);
+ LATTEST(character >= MIN);
+ LATTEST(character < CHARMAX);
+ LATTEST(size >= MIN);
+ LATTEST(size < SIZEMAX);
+ LATTEST(user_text >= -1);
+ LATTEST(user_text <= 1);
// now some relational/operational tests
if (user_text == 1) {
- BOOST_ASSERT(font == -1 && (character == -1 && size == -1));
- // BOOST_ASSERT(!text.empty()); // this isn't necessarily an error
+ LATTEST(font == -1 && (character == -1 && size == -1));
+ // LATTEST(!text.empty()); // this isn't necessarily an error
}
// else if (user_text == -1) {
- // BOOST_ASSERT(!text.empty()); // this also isn't necessarily an error
+ // LATTEST(!text.empty()); // this also isn't necessarily an error
// }
// else {
// // user_text == 0
- // BOOST_ASSERT(text.empty()); // not usually true
+ // LATTEST(text.empty()); // not usually true
// }
#endif
}