linux: added console_panel to makefile, removed junk from error.hpp

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1642 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2011-01-24 11:57:11 +00:00
parent 274a4aba04
commit c6a74d4576
3 changed files with 25 additions and 13 deletions
-11
View File
@@ -132,17 +132,6 @@ class ScriptErrorNoMember : public ScriptError {
: ScriptError(_ERROR_2_("has no member", type, member)) {}
};
// ----------------------------------------------------------------------------- : Bounds checking
template <typename T>
T& at(vector<T>& x, size_t pos) {
if (pos < x.size()) {
return x[pos];
} else {
throw InternalError(_("vector<T> index out of bounds: %d > %d, where T = ") + typeid(x).name());
}
}
// ----------------------------------------------------------------------------- : Error/message handling
/// Should a popup be shown for internal errors?