}
/// \brief \copydoc scene::Traversable::insert()
void insert( scene::Node& node ){
- ASSERT_MESSAGE( &node != 0, "TraversableNodeSet::insert: sanity check failed" );
m_undo.save();
ASSERT_MESSAGE( m_children.find( NodeSmartReference( node ) ) == m_children.end(), "TraversableNodeSet::insert - element already exists" );
}
/// \brief \copydoc scene::Traversable::erase()
void erase( scene::Node& node ){
- ASSERT_MESSAGE( &node != 0, "TraversableNodeSet::erase: sanity check failed" );
m_undo.save();
ASSERT_MESSAGE( m_children.find( NodeSmartReference( node ) ) != m_children.end(), "TraversableNodeSet::erase - failed to find element" );
}
void registerModule( const char* type, int version, const char* name, Module& module ){
- ASSERT_NOTNULL( &module );
if ( !m_modules.insert( Modules_::value_type( ModuleKey( ModuleType( type, version ), name ), &module ) ).second ) {
globalErrorStream() << "module already registered: type=" << makeQuoted( type ) << " name=" << makeQuoted( name ) << "\n";
}