diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-06 17:20:12 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-06 17:20:12 +0200 |
commit | d9a149a230f9b320113020789beb78a883da3b40 (patch) | |
tree | 64925d938067e97b76d142cf915a5e1ce840246f /src/deep.cpp | |
parent | 5fcbc757f62cdc9698a8f783864141f40fdff34e (diff) | |
download | lanes-d9a149a230f9b320113020789beb78a883da3b40.tar.gz lanes-d9a149a230f9b320113020789beb78a883da3b40.tar.bz2 lanes-d9a149a230f9b320113020789beb78a883da3b40.zip |
Converted a few more raw string pointers to std::string_view
Diffstat (limited to 'src/deep.cpp')
-rw-r--r-- | src/deep.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/deep.cpp b/src/deep.cpp index 97442cf..9538fdf 100644 --- a/src/deep.cpp +++ b/src/deep.cpp | |||
@@ -259,8 +259,7 @@ void DeepFactory::PushDeepProxy(DestState const L_, DeepPrelude* const prelude_, | |||
259 | LuaError const _require_result{ lua_pcall(L_, 1, 0, 0) }; // L_: DPC proxy metatable error? | 259 | LuaError const _require_result{ lua_pcall(L_, 1, 0, 0) }; // L_: DPC proxy metatable error? |
260 | if (_require_result != LuaError::OK) { | 260 | if (_require_result != LuaError::OK) { |
261 | // failed, raise the error in the proper state | 261 | // failed, raise the error in the proper state |
262 | std::ignore = luaG_pushstringview(errL_, luaG_tostringview(L_, -1)); | 262 | raise_luaL_error(errL_, luaG_tostringview(L_, -1)); |
263 | raise_lua_error(errL_); | ||
264 | } | 263 | } |
265 | } | 264 | } |
266 | } else { // already loaded, we are happy | 265 | } else { // already loaded, we are happy |