mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
I can spell good, I promise.
This commit is contained in:
parent
20a0b0809f
commit
39e18b4468
|
@ -1298,7 +1298,7 @@ namespace sol {
|
||||||
decltype(auto) value = stack::unqualified_get<value_type>(L, 2);
|
decltype(auto) value = stack::unqualified_get<value_type>(L, 2);
|
||||||
std::size_t N = std::extent<T>::value;
|
std::size_t N = std::extent<T>::value;
|
||||||
for (std::size_t idx = 0; idx < N; ++idx) {
|
for (std::size_t idx = 0; idx < N; ++idx) {
|
||||||
using v_t = std::add_const_t<decltype(self[index])>;
|
using v_t = std::add_const_t<decltype(self[idx])>;
|
||||||
v_t v = self[idx];
|
v_t v = self[idx];
|
||||||
if (v == value) {
|
if (v == value) {
|
||||||
idx -= deferred_uc::index_adjustment(L, self);
|
idx -= deferred_uc::index_adjustment(L, self);
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2019-03-31 18:38:29.717261 UTC
|
// Generated 2019-03-31 19:17:36.771896 UTC
|
||||||
// This header was generated with sol v3.0.1-beta2 (revision 26cbadc)
|
// This header was generated with sol v3.0.1-beta2 (revision 20a0b08)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2019-03-31 18:38:28.701189 UTC
|
// Generated 2019-03-31 19:17:35.706908 UTC
|
||||||
// This header was generated with sol v3.0.1-beta2 (revision 26cbadc)
|
// This header was generated with sol v3.0.1-beta2 (revision 20a0b08)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -19793,7 +19793,7 @@ namespace sol {
|
||||||
decltype(auto) value = stack::unqualified_get<value_type>(L, 2);
|
decltype(auto) value = stack::unqualified_get<value_type>(L, 2);
|
||||||
std::size_t N = std::extent<T>::value;
|
std::size_t N = std::extent<T>::value;
|
||||||
for (std::size_t idx = 0; idx < N; ++idx) {
|
for (std::size_t idx = 0; idx < N; ++idx) {
|
||||||
using v_t = std::add_const_t<decltype(self[index])>;
|
using v_t = std::add_const_t<decltype(self[idx])>;
|
||||||
v_t v = self[idx];
|
v_t v = self[idx];
|
||||||
if (v == value) {
|
if (v == value) {
|
||||||
idx -= deferred_uc::index_adjustment(L, self);
|
idx -= deferred_uc::index_adjustment(L, self);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user