mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
update single
This commit is contained in:
parent
8f6b51ad29
commit
7164a8a30a
@ -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 2017-08-21 19:22:41.597215 UTC
|
// Generated 2017-08-21 20:22:51.208425 UTC
|
||||||
// This header was generated with sol v2.18.0 (revision 488edd9)
|
// This header was generated with sol v2.18.1 (revision 8f6b51a)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
@ -15516,14 +15516,14 @@ namespace sol {
|
|||||||
auto& properties = umx.properties;
|
auto& properties = umx.properties;
|
||||||
auto sic = hasindex ? &usertype_detail::simple_index_call<T, true> : &usertype_detail::simple_index_call<T, false>;
|
auto sic = hasindex ? &usertype_detail::simple_index_call<T, true> : &usertype_detail::simple_index_call<T, false>;
|
||||||
auto snic = hasnewindex ? &usertype_detail::simple_new_index_call<T, true> : &usertype_detail::simple_new_index_call<T, false>;
|
auto snic = hasnewindex ? &usertype_detail::simple_new_index_call<T, true> : &usertype_detail::simple_new_index_call<T, false>;
|
||||||
auto register_kvp = [&](std::size_t i, stack_reference& t, const std::string& first, object& second) {
|
auto register_kvp = [&](std::size_t meta_index, stack_reference& t, const std::string& first, object& second) {
|
||||||
meta_function mf = meta_function::construct;
|
meta_function mf = meta_function::construct;
|
||||||
for (std::size_t i = 1; i < properties.size(); ++i) {
|
for (std::size_t j = 1; j < properties.size(); ++j) {
|
||||||
mf = static_cast<meta_function>(i);
|
mf = static_cast<meta_function>(j);
|
||||||
const std::string& mfname = to_string(mf);
|
const std::string& mfname = to_string(mf);
|
||||||
if (mfname != first)
|
if (mfname != first)
|
||||||
continue;
|
continue;
|
||||||
properties[i] = true;
|
properties[j] = true;
|
||||||
switch (mf) {
|
switch (mf) {
|
||||||
case meta_function::index:
|
case meta_function::index:
|
||||||
umx.indexfunc = second;
|
umx.indexfunc = second;
|
||||||
@ -15536,7 +15536,7 @@ namespace sol {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
switch (i) {
|
switch (meta_index) {
|
||||||
case 0:
|
case 0:
|
||||||
if (mf == meta_function::garbage_collect) {
|
if (mf == meta_function::garbage_collect) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user