Changeset 109 for trunk/src/library.cc


Ignore:
Timestamp:
06/06/13 17:29:27 (12 years ago)
Author:
epyon
Message:
  • prevent multiple loadings of the same library
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/library.cc

    r64 r109  
    3636using namespace nv;
    3737
    38 library::library( const std::string& name )
    39     : m_name( name )
     38library::library()
     39    : m_name(), m_handle( nullptr )
    4040{
    41     m_handle = NULL;
    42     open();
    4341}
    4442
     
    9088}
    9189
    92 
     90bool library::is_open() const
     91{
     92        return m_handle != nullptr;
     93}
    9394
    9495void library::close()
Note: See TracChangeset for help on using the changeset viewer.