Commit 0966a656 authored by hybrid's avatar hybrid

Remove exceptions from irrMap.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2473 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ba58d26f
......@@ -186,8 +186,7 @@ class map
Node& operator* ()
{
if (atEnd())
throw "Iterator at end";
_IRR_DEBUG_BREAK_IF(atEnd()) // access violation
return *Cur;
}
......@@ -336,8 +335,8 @@ class map
Node& operator* ()
{
if (atEnd())
throw "ParentFirstIterator at end";
_IRR_DEBUG_BREAK_IF(atEnd()) // access violation
return *getNode();
}
......@@ -436,8 +435,8 @@ class map
Node& operator* ()
{
if (atEnd())
throw "ParentLastIterator at end";
_IRR_DEBUG_BREAK_IF(atEnd()) // access violation
return *getNode();
}
private:
......@@ -483,7 +482,7 @@ class map
// myTree["Foo"] = 32;
// If "Foo" already exists update its value else insert a new element.
// int i = myTree["Foo"]
// If "Foo" exists return its value, else throw an exception.
// If "Foo" exists return its value.
class AccessClass
{
// Let map be the only one who can instantiate this class.
......@@ -504,8 +503,7 @@ class map
Node* node = Tree.find(Key);
// Not found
if (node==0)
throw "Item not found";
_IRR_DEBUG_BREAK_IF(node==0) // access violation
_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX;
return node->getValue();
......
......@@ -49,7 +49,7 @@ LINKOBJ = $(IRRMESHOBJ) $(IRROBJ) $(IRRPARTICLEOBJ) $(IRRANIMOBJ) \
#Compiler flags
CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng
CPPFLAGS = $(CXXINCS) -DIRRLICHT_EXPORTS=1
CXXFLAGS = -Wall -pipe
CXXFLAGS = -Wall -pipe -fno-exceptions -fno-rtti
ifndef NDEBUG
CXXFLAGS += -g -D_DEBUG
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment