Remove the now unused wassert.hpp and wassert.cpp.
This commit is contained in:
parent
87f8b9127b
commit
ab91ce7fc4
4 changed files with 0 additions and 56 deletions
|
@ -111,7 +111,6 @@ src/upload_log.cpp
|
|||
src/util.cpp
|
||||
src/variable.cpp
|
||||
src/video.cpp
|
||||
src/wassert.cpp
|
||||
src/widgets/button.cpp
|
||||
src/widgets/combo.cpp
|
||||
src/widgets/label.cpp
|
||||
|
|
|
@ -432,7 +432,6 @@ noinst_HEADERS = \
|
|||
util.hpp \
|
||||
variable.hpp \
|
||||
video.hpp \
|
||||
wassert.hpp \
|
||||
wml_separators.hpp \
|
||||
sdl_ttf/SDL_ttf.h \
|
||||
wesconfig.h \
|
||||
|
@ -462,7 +461,6 @@ libwesnoth_core_a_SOURCES = \
|
|||
thread.cpp \
|
||||
tstring.cpp \
|
||||
util.cpp \
|
||||
wassert.cpp \
|
||||
serialization/binary_wml.cpp \
|
||||
serialization/preprocessor.cpp \
|
||||
serialization/string_utils.cpp \
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
/* $Id$ */
|
||||
/*
|
||||
Copyright (C) 2005 - 2007 by Isaac Clerencia <isaac@sindominio.net>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
//! @file wassert.cpp
|
||||
//! Write assert-message.
|
||||
|
||||
#ifdef STANDARD_ASSERT_DOES_NOT_WORK
|
||||
|
||||
#include "log.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
void wassert(bool expression)
|
||||
{
|
||||
// crash if expression is false
|
||||
if(! expression) {
|
||||
LOG_STREAM(err, general) << "Assertion failure" << "\n";
|
||||
*reinterpret_cast<int*>(0) = 5;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,20 +0,0 @@
|
|||
/* $Id$ */
|
||||
/*
|
||||
Copyright (C) 2005 - 2007 by Isaac Clerencia <isaac@sindominio.net>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
#ifndef WASSERT_HPP_INCLUDED
|
||||
#define WASSERT_HPP_INCLUDED
|
||||
|
||||
#include <cassert>
|
||||
#define wassert assert
|
||||
|
||||
#endif
|
Loading…
Add table
Reference in a new issue