Changeset 433 for trunk/src/lua
- Timestamp:
- 07/21/15 19:40:00 (10 years ago)
- Location:
- trunk/src/lua
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_function.cc
r406 r433 21 21 { 22 22 lua_pop( L, 1 ); 23 NV_LUA_ABORT( "function_base::function_base", "not a valid path - ", a_path.to_string() );23 NV_LUA_ABORT( "function_base::function_base", "not a valid path - ", a_path.to_string().c_str() ); 24 24 } 25 25 … … 27 27 { 28 28 lua_pop( L, 1 ); 29 NV_LUA_ABORT( "function_base::function_base", "not a valid function - ", a_path.to_string() );29 NV_LUA_ABORT( "function_base::function_base", "not a valid function - ", a_path.to_string().c_str() ); 30 30 } 31 31 m_ref = luaL_ref( L, LUA_REGISTRYINDEX ); -
trunk/src/lua/lua_map_tile.cc
r406 r433 55 55 nv::map_area* map_area = nv::lua::detail::to_map_area( L, 3 ); 56 56 lua_settop( L, 2 ); 57 std::string code = nv::trimmed( lua_tostring( L, 1 ) ).to_string(); 57 nv::string_view lts = nv::trimmed( lua_tostring( L, 1 ) ); 58 std::string code( lts.data(), lts.size() ); 58 59 std::string chars( " \r\t" ); 59 60 code.erase( nv::remove_if( code.begin(), code.end(), -
trunk/src/lua/lua_state.cc
r431 r433 116 116 if ( !p.resolve( m_state, global ) ) 117 117 { 118 NV_LOG_ERROR( "Lua error : not a valid path - ", p.to_string() );118 NV_LOG_ERROR( "Lua error : not a valid path - ", p.to_string().c_str() ); 119 119 return false; 120 120 } … … 123 123 { 124 124 lua_pop( m_state, 1 ); 125 NV_LOG_ERROR( "Lua error : not a valid function - ", p.to_string() );125 NV_LOG_ERROR( "Lua error : not a valid function - ", p.to_string().c_str() ); 126 126 return false; 127 127 } … … 442 442 for ( int i = 0; i < top; ++i ) 443 443 { 444 NV_LOG_DEBUG( "#", i+1, " - ", lua_typename(m_state, lua_type(m_state, i+1) ), " = ", nlua_typecontent(m_state, i+1) );444 NV_LOG_DEBUG( "#", i+1, " - ", lua_typename(m_state, lua_type(m_state, i+1) ), " = ", nlua_typecontent(m_state, i+1).c_str() ); 445 445 } 446 446 }
Note: See TracChangeset
for help on using the changeset viewer.