- Timestamp:
- 07/29/15 16:24:39 (10 years ago)
- Location:
- trunk/src/lua
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_path.cc
r440 r445 78 78 string128 buffer; 79 79 bool dot = false; 80 for ( const element& e : m_elements)80 for ( size_t c = 0; c < m_count; ++c ) 81 81 { 82 82 if ( dot ) buffer.append( "." ); 83 if ( e.length == 0 )83 if ( m_elements[c].length == 0 ) 84 84 { 85 buffer.append( "["_ls + e.value + "]"_ls );85 buffer.append( "["_ls + m_elements[c].value + "]"_ls ); 86 86 dot = false; 87 87 } 88 88 else 89 89 { 90 buffer.append( e.str, e.length );90 buffer.append( m_elements[c].str, m_elements[c].length ); 91 91 dot = true; 92 92 } -
trunk/src/lua/lua_values.cc
r440 r445 106 106 } 107 107 108 const char* nv::lua::detail::to_cstring ( lua_State *L, int index )109 {110 return lua_tolstring( L, index, nullptr );111 }108 // const char* nv::lua::detail::to_cstring ( lua_State *L, int index ) 109 // { 110 // return lua_tolstring( L, index, nullptr ); 111 // } 112 112 113 113 nv::string_view nv::lua::detail::to_string_view( lua_State *L, int index ) … … 164 164 } 165 165 166 const char* nv::lua::detail::to_cstring ( lua_State *L, int index, const char* def )167 {168 return ( lua_type( L, index ) == LUA_TSTRING ? lua_tostring( L, index ) : def );169 }166 // const char* nv::lua::detail::to_cstring ( lua_State *L, int index, const char* def ) 167 // { 168 // return ( lua_type( L, index ) == LUA_TSTRING ? lua_tostring( L, index ) : def ); 169 // } 170 170 171 171 void* nv::lua::detail::to_pointer ( lua_State *L, int index, void* def )
Note: See TracChangeset
for help on using the changeset viewer.