aboutsummaryrefslogtreecommitdiff
path: root/src/intercopycontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/intercopycontext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp
index 1487afd..08709e5 100644
--- a/src/intercopycontext.cpp
+++ b/src/intercopycontext.cpp
@@ -751,9 +751,9 @@ void InterCopyContext::inter_copy_keyvaluepair() const
751 STACK_CHECK(L1, _nuv); 751 STACK_CHECK(L1, _nuv);
752 752
753 DeepPrelude* const u{ *lua_tofulluserdata<DeepPrelude*>(L1, L1_i) }; 753 DeepPrelude* const u{ *lua_tofulluserdata<DeepPrelude*>(L1, L1_i) };
754 char const* errmsg{ DeepFactory::PushDeepProxy(L2, u, _nuv, mode) }; // L1: ... u [uv]* L2: u 754 std::string_view const errmsg{ DeepFactory::PushDeepProxy(L2, u, _nuv, mode) }; // L1: ... u [uv]* L2: u
755 if (errmsg != nullptr) { 755 if (!errmsg.empty()) {
756 raise_luaL_error(getErrL(), errmsg); 756 raise_luaL_error(getErrL(), errmsg.data());
757 } 757 }
758 758
759 // transfer all uservalues of the source in the destination 759 // transfer all uservalues of the source in the destination
@@ -1142,7 +1142,7 @@ static char const* vt_names[] = {
1142// transfers stuff from L1->_G["package"] to L2->_G["package"] 1142// transfers stuff from L1->_G["package"] to L2->_G["package"]
1143// returns InterCopyResult::Success if everything is fine 1143// returns InterCopyResult::Success if everything is fine
1144// returns InterCopyResult::Error if pushed an error message in L1 1144// returns InterCopyResult::Error if pushed an error message in L1
1145// else raise an error in L1 1145// else raise an error in whichever state is not a keeper
1146[[nodiscard]] InterCopyResult InterCopyContext::inter_copy_package() const 1146[[nodiscard]] InterCopyResult InterCopyContext::inter_copy_package() const
1147{ 1147{
1148 DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "InterCopyContext::inter_copy_package()\n" INDENT_END(U))); 1148 DEBUGSPEW_CODE(fprintf(stderr, INDENT_BEGIN "InterCopyContext::inter_copy_package()\n" INDENT_END(U)));