Changeset 109 for trunk/src/lib/lua.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/lib/lua.cc

    r5 r109  
    185185#       define NV_LUA_LOAD( symbol ) *(void **) (&symbol) = lua_library.get(#symbol);
    186186
    187         static nv::library lua_library( path );
     187        static nv::library lua_library;
     188        if ( lua_library.is_open() ) return true;
     189        lua_library.open( path );
     190
    188191
    189192/* State manipulation */
Note: See TracChangeset for help on using the changeset viewer.