Ignore:
Timestamp:
01/26/16 18:59:46 (9 years ago)
Author:
epyon
Message:
  • massive update (need to start doing atomics again) :/
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/core/resource.hh

    r484 r485  
    1818#include <nv/stl/hash_store.hh>
    1919#include <nv/stl/vector.hh>
     20
     21#include <nv/core/logging.hh>
    2022
    2123
     
    7779        {
    7880        public:
    79                 resource() : m_id(0), m_handler( nullptr ) {}
     81                resource() : m_id(), m_handler( nullptr ) {}
    8082                resource_id id() const { return m_id; }
    8183                constexpr bool is_valid() const { return m_id && m_handler; }
     
    214216                        if ( m->second->exists( id ) || m->second->load_resource( id ) )
    215217                                return m->second->create< T >( id );
    216                         // NV_ASSERT( false, "resource_manager.get failed!" );
     218                        NV_ASSERT( false, "resource_manager.get failed!" );
    217219                        return resource< T >();
    218220                }
     
    227229                                return m->second->create< T >( id );
    228230                        }
    229                         // NV_ASSERT( false, "resource_manager.get failed!" );
     231                        NV_ASSERT( false, "resource_manager.get failed!" );
    230232                        return resource< T >();
    231233                }
Note: See TracChangeset for help on using the changeset viewer.