Skip to content

Commit c37a184

Browse files
committed
rdy2roll
1 parent f1965a4 commit c37a184

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

single/sol/sol.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
// 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)
2525
// https://github.com/ThePhD/sol2
2626

2727
#ifndef SOL_SINGLE_INCLUDE_HPP
@@ -5273,13 +5273,13 @@ namespace sol {
52735273
return stack::push(L, nil);
52745274
T** pref = static_cast<T**>(lua_newuserdata(L, sizeof(T*)));
52755275
*pref = obj;
5276-
luaL_getmetatable(L, &k[0]);
5276+
luaL_newmetatable(L, &k[0]);
52775277
lua_setmetatable(L, -2);
52785278
return 1;
52795279
}
52805280

52815281
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);
52835283
}
52845284
};
52855285

@@ -5497,7 +5497,7 @@ namespace sol {
54975497
std::allocator<T> alloc;
54985498
alloc.construct(data, std::forward<Args>(args)...);
54995499
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];
55015501
lua_CFunction cdel = stack_detail::alloc_destroy<T>;
55025502
// Make sure we have a plain GC set for this data
55035503
if (luaL_newmetatable(L, name) != 0) {

0 commit comments

Comments
 (0)