Changeset 78 for trunk/src/lua


Ignore:
Timestamp:
06/01/13 23:50:55 (12 years ago)
Author:
epyon
Message:
  • types.hh - basing totally on typeid now
  • types.hh - removed hash_string and name registration defines (get_type_name template)
  • types.hh - name is defined at registration via create_type
  • types.hh - overall the code is much cleaner now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_state.cc

    r77 r78  
    296296        if (!t) return ref_none;
    297297        stack_guard guard( this );
    298         lua_getglobal( L, t->name.text );
     298        lua_getglobal( L, t->name.c_str() );
    299299        if ( lua_isnil( L, -1 ) )
    300300        {
    301                 NV_THROW( runtime_error, std::string( t->name.text ) + " type not registered!" );
     301                NV_THROW( runtime_error, std::string( t->name ) + " type not registered!" );
    302302        }
    303303        deep_pointer_copy( -1, o );
Note: See TracChangeset for help on using the changeset viewer.