Ignore:
Timestamp:
05/04/15 16:30:44 (10 years ago)
Author:
epyon
Message:
  • more string_ref usage
  • string_ref moved to string.hh
  • initial const_string implemenation
File:
1 edited

Legend:

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

    r319 r360  
    5757        if ( lua_istable( L , index ) )
    5858        {
    59                 lua_pushstring( L, "__map_area_ptr" );
     59                lua_pushliteral( L, "__map_area_ptr" );
    6060                lua_rawget( L, index );
    6161                if ( lua_isuserdata( L, -1 ) )
     
    9696static int nlua_map_area_tostring( lua_State* L )
    9797{
    98         lua_pushstring( L, "map_area" );
     98        lua_pushliteral ( L, "map_area" );
    9999        return 1;
    100100}
     
    236236{
    237237        lua_rawgeti( L, LUA_REGISTRYINDEX, object_index.get() );
    238         lua_pushstring( L, "__map_area_ptr" );
     238        lua_pushliteral( L, "__map_area_ptr" );
    239239        lua_pushlightuserdata( L, (map_area*)area );
    240240        lua_rawset( L, -3 );
Note: See TracChangeset for help on using the changeset viewer.