Skip to content

Commit

Permalink
fix convertor_for_return<tuple<>> check exists
Browse files Browse the repository at this point in the history
  • Loading branch information
peacalm committed Oct 22, 2024
1 parent 383046f commit d2331e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/peacalm/luaw.h
Original file line number Diff line number Diff line change
Expand Up @@ -4725,7 +4725,7 @@ struct luaw::convertor_for_return<std::tuple<Ts...>> {
bool* failed = nullptr,
bool* exists = nullptr) {
if (failed) *failed = false;
if (exists) *exists = false;
if (exists) *exists = !l.isnoneornil(idx);
}
};

Expand Down

0 comments on commit d2331e7

Please sign in to comment.