mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user