Changeset 399 for trunk/src/lua/lua_values.cc
- Timestamp:
- 06/13/15 11:47:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_values.cc
r395 r399 75 75 } 76 76 77 void nv::lua::detail::push_string_ ref( lua_State *L, string_refs )77 void nv::lua::detail::push_string_view( lua_State *L, string_view s ) 78 78 { 79 79 lua_pushlstring( L, s.data(), s.size() ); … … 123 123 } 124 124 125 nv::string_ ref nv::lua::detail::to_string_ref( lua_State *L, int index )125 nv::string_view nv::lua::detail::to_string_view( lua_State *L, int index ) 126 126 { 127 127 size_t length = 0; 128 128 const char* result = lua_tolstring( L, index, &length ); 129 return string_ ref( result, length );129 return string_view( result, length ); 130 130 } 131 131
Note: See TracChangeset
for help on using the changeset viewer.