@@ -1294,13 +1294,13 @@ class Namespace : public detail::Registrar
12941294 overload_set->entries .push_back (std::move (entry));
12951295
12961296 // OverloadSet is at stack top (upvalue[1]); constructor_placement_proxy ignores it.
1297- lua_pushcclosure_x (L, &detail::constructor_placement_proxy<T, ArgsPack>, className , 1 );
1297+ lua_pushcclosure_x (L, &detail::constructor_placement_proxy<T, ArgsPack>, " new " , 1 );
12981298
12991299 } (), ...);
13001300#else
13011301 ([&]
13021302 {
1303- lua_pushcclosure_x (L, &detail::constructor_placement_proxy<T, detail::function_arguments_t <Functions>>, className , 0 );
1303+ lua_pushcclosure_x (L, &detail::constructor_placement_proxy<T, detail::function_arguments_t <Functions>>, " new " , 0 );
13041304
13051305 } (), ...);
13061306#endif
@@ -1332,12 +1332,12 @@ class Namespace : public detail::Registrar
13321332
13331333 ([&]
13341334 {
1335- lua_pushcclosure_x (L, &detail::constructor_placement_proxy<T, detail::function_arguments_t <Functions>>, className , 0 );
1335+ lua_pushcclosure_x (L, &detail::constructor_placement_proxy<T, detail::function_arguments_t <Functions>>, " new " , 0 );
13361336 lua_rawseti (L, -2 , idx++);
13371337
13381338 } (), ...);
13391339
1340- lua_pushcclosure_x (L, &detail::try_overload_functions<false >, className , 2 );
1340+ lua_pushcclosure_x (L, &detail::try_overload_functions<false >, " new " , 2 );
13411341 }
13421342
13431343 rawsetfield (L, -2 , " new" );
@@ -1389,10 +1389,10 @@ class Namespace : public detail::Registrar
13891389 }
13901390 // OverloadSet is now at stack top (upvalue[1]).
13911391 lua_newuserdata_aligned<F>(L, F (detail::get_underlying (std::move (functions)))); // upvalue[2]
1392- lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F, 2 >, className , 2 );
1392+ lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F, 2 >, " new " , 2 );
13931393#else
13941394 lua_newuserdata_aligned<F>(L, F (detail::get_underlying (std::move (functions)))); // Stack: co, cl, st, upvalue
1395- lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, className , 1 ); // Stack: co, cl, st, function
1395+ lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, " new " , 1 ); // Stack: co, cl, st, function
13961396#endif
13971397 } (), ...);
13981398 }
@@ -1440,12 +1440,12 @@ class Namespace : public detail::Registrar
14401440 using F = detail::constructor_forwarder<T, InnerF>;
14411441
14421442 lua_newuserdata_aligned<F>(L, F (detail::get_underlying (std::move (functions))));
1443- lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, className , 1 );
1443+ lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, " new " , 1 );
14441444 lua_rawseti (L, -2 , idx++);
14451445
14461446 } (), ...);
14471447
1448- lua_pushcclosure_x (L, &detail::try_overload_functions<false >, className , 2 );
1448+ lua_pushcclosure_x (L, &detail::try_overload_functions<false >, " new " , 2 );
14491449 }
14501450
14511451 rawsetfield (L, -2 , " new" ); // Stack: co, cl, st
@@ -1467,7 +1467,7 @@ class Namespace : public detail::Registrar
14671467 {
14681468 ([&]
14691469 {
1470- lua_pushcclosure_x (L, &detail::constructor_container_proxy<C, detail::function_arguments_t <Functions>>, className , 0 );
1470+ lua_pushcclosure_x (L, &detail::constructor_container_proxy<C, detail::function_arguments_t <Functions>>, " new " , 0 );
14711471
14721472 } (), ...);
14731473 }
@@ -1494,12 +1494,12 @@ class Namespace : public detail::Registrar
14941494
14951495 ([&]
14961496 {
1497- lua_pushcclosure_x (L, &detail::constructor_container_proxy<C, detail::function_arguments_t <Functions>>, className , 0 );
1497+ lua_pushcclosure_x (L, &detail::constructor_container_proxy<C, detail::function_arguments_t <Functions>>, " new " , 0 );
14981498 lua_rawseti (L, -2 , idx++);
14991499
15001500 } (), ...);
15011501
1502- lua_pushcclosure_x (L, &detail::try_overload_functions<false >, className , 2 );
1502+ lua_pushcclosure_x (L, &detail::try_overload_functions<false >, " new " , 2 );
15031503 }
15041504
15051505 rawsetfield (L, -2 , " new" );
@@ -1528,7 +1528,7 @@ class Namespace : public detail::Registrar
15281528 using F = detail::container_forwarder<C, Functions>;
15291529
15301530 lua_newuserdata_aligned<F>(L, F (std::move (functions))); // Stack: co, cl, st, upvalue
1531- lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, className , 1 ); // Stack: co, cl, st, function
1531+ lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, " new " , 1 ); // Stack: co, cl, st, function
15321532
15331533 } (), ...);
15341534 }
@@ -1566,12 +1566,12 @@ class Namespace : public detail::Registrar
15661566 using F = detail::container_forwarder<C, Functions>;
15671567
15681568 lua_newuserdata_aligned<F>(L, F (std::move (functions)));
1569- lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, className , 1 );
1569+ lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, " new " , 1 );
15701570 lua_rawseti (L, -2 , idx++);
15711571
15721572 } (), ...);
15731573
1574- lua_pushcclosure_x (L, &detail::try_overload_functions<false >, className , 2 );
1574+ lua_pushcclosure_x (L, &detail::try_overload_functions<false >, " new " , 2 );
15751575 }
15761576
15771577 rawsetfield (L, -2 , " new" ); // Stack: co, cl, st
@@ -1616,7 +1616,7 @@ class Namespace : public detail::Registrar
16161616 using F = detail::factory_forwarder<T, Allocator, Deallocator>;
16171617
16181618 lua_newuserdata_aligned<F>(L, F (std::move (allocator), std::move (deallocator))); // Stack: co, cl, st, upvalue
1619- lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, className , 1 ); // Stack: co, cl, st, function
1619+ lua_pushcclosure_x (L, &detail::invoke_proxy_constructor<F>, " new " , 1 ); // Stack: co, cl, st, function
16201620 rawsetfield (L, -2 , " new" ); // Stack: co, cl, st
16211621
16221622 return *this ;
0 commit comments