|
20 | 20 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
21 | 21 |
|
22 | 22 | // This file was generated with a script. |
23 | | -// Generated 2016-07-15 11:56:10.749976 UTC |
24 | | -// This header was generated with sol v2.9.3 (revision 85daffa) |
| 23 | +// Generated 2016-07-15 14:14:12.808198 UTC |
| 24 | +// This header was generated with sol v2.9.3 (revision f1965a4) |
25 | 25 | // https://github.com/ThePhD/sol2 |
26 | 26 |
|
27 | 27 | #ifndef SOL_SINGLE_INCLUDE_HPP |
@@ -5273,13 +5273,13 @@ namespace sol { |
5273 | 5273 | return stack::push(L, nil); |
5274 | 5274 | T** pref = static_cast<T**>(lua_newuserdata(L, sizeof(T*))); |
5275 | 5275 | *pref = obj; |
5276 | | - luaL_getmetatable(L, &k[0]); |
| 5276 | + luaL_newmetatable(L, &k[0]); |
5277 | 5277 | lua_setmetatable(L, -2); |
5278 | 5278 | return 1; |
5279 | 5279 | } |
5280 | 5280 |
|
5281 | 5281 | static int push(lua_State* L, T* obj) { |
5282 | | - return push_keyed(L, usertype_traits<T*>::metatable, obj); |
| 5282 | + return push_keyed(L, usertype_traits<meta::unqualified_t<T>*>::metatable, obj); |
5283 | 5283 | } |
5284 | 5284 | }; |
5285 | 5285 |
|
@@ -5497,7 +5497,7 @@ namespace sol { |
5497 | 5497 | std::allocator<T> alloc; |
5498 | 5498 | alloc.construct(data, std::forward<Args>(args)...); |
5499 | 5499 | if (with_meta) { |
5500 | | - const auto name = &usertype_traits<T>::user_gc_metatable[0]; |
| 5500 | + const auto name = &usertype_traits<meta::unqualified_t<T>>::user_gc_metatable[0]; |
5501 | 5501 | lua_CFunction cdel = stack_detail::alloc_destroy<T>; |
5502 | 5502 | // Make sure we have a plain GC set for this data |
5503 | 5503 | if (luaL_newmetatable(L, name) != 0) { |
|
0 commit comments