Converted .ive plugin from using C++ exceptions to using a local equivelant, enabling the build on embedded systems.
This commit is contained in:
@@ -31,7 +31,7 @@ void PagedLOD::write(DataOutputStream* out)
|
||||
static_cast<ive::Node*>(node)->write(out);
|
||||
}
|
||||
else
|
||||
throw Exception("PagedLOD::write(): Could not cast this osg::PagedLOD to an osg::Node.");
|
||||
out_THROW_EXCEPTION("PagedLOD::write(): Could not cast this osg::PagedLOD to an osg::Node.");
|
||||
|
||||
out->writeString(getDatabasePath());
|
||||
out->writeFloat(getRadius());
|
||||
@@ -123,7 +123,7 @@ void PagedLOD::read(DataInputStream* in)
|
||||
((ive::Node*)(node))->read(in);
|
||||
}
|
||||
else
|
||||
throw Exception("PagedLOD::read(): Could not cast this osg::PagedLOD to an osg::Node.");
|
||||
in_THROW_EXCEPTION("PagedLOD::read(): Could not cast this osg::PagedLOD to an osg::Node.");
|
||||
|
||||
|
||||
if ( in->getVersion() >= VERSION_0006 )
|
||||
@@ -203,6 +203,6 @@ void PagedLOD::read(DataInputStream* in)
|
||||
}
|
||||
}
|
||||
else{
|
||||
throw Exception("LOD::read(): Expected LOD identification.");
|
||||
in_THROW_EXCEPTION("LOD::read(): Expected LOD identification.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user