I REMEMBER NOW

This commit is contained in:
ThePhD 2017-10-03 10:46:26 -04:00
parent c5505c234a
commit 8f007074ff
4 changed files with 10 additions and 8 deletions

View File

@ -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-10-03 12:26:06.843171 UTC // Generated 2017-10-03 14:46:14.157422 UTC
// This header was generated with sol v2.18.4 (revision 3660aec) // This header was generated with sol v2.18.4 (revision c5505c2)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP #ifndef SOL_SINGLE_INCLUDE_HPP
@ -9380,7 +9380,7 @@ namespace stack {
template <> template <>
struct pusher<userdata_value> { struct pusher<userdata_value> {
static int push(lua_State* L, userdata_value data) { static int push(lua_State* L, userdata_value data) {
void** ud = static_cast<void**>(lua_newuserdata(L, sizeof(void*))); void** ud = detail::usertype_allocate_pointer<void>(L);
*ud = data.value; *ud = data.value;
return 1; return 1;
} }
@ -16803,7 +16803,8 @@ namespace sol {
umt.pop(); umt.pop();
stack::get_field<true>(L, gcmetakey); stack::get_field<true>(L, gcmetakey);
return stack::pop<light<umt_t>>(L); umt_t& target_umt = stack::pop<user<umt_t>>(L);
return target_umt;
} }
static int push(lua_State* L, umt_t&& umx) { static int push(lua_State* L, umt_t&& umx) {
@ -17312,7 +17313,7 @@ namespace sol {
stackvarmap.pop(); stackvarmap.pop();
stack::get_field<true>(L, gcmetakey); stack::get_field<true>(L, gcmetakey);
usertype_detail::simple_map& varmap = stack::pop<light<usertype_detail::simple_map>>(L); usertype_detail::simple_map& varmap = stack::pop<user<usertype_detail::simple_map>>(L);
return varmap; return varmap;
} }

View File

@ -404,7 +404,7 @@ namespace sol {
stackvarmap.pop(); stackvarmap.pop();
stack::get_field<true>(L, gcmetakey); stack::get_field<true>(L, gcmetakey);
usertype_detail::simple_map& varmap = stack::pop<light<usertype_detail::simple_map>>(L); usertype_detail::simple_map& varmap = stack::pop<user<usertype_detail::simple_map>>(L);
return varmap; return varmap;
} }

View File

@ -512,7 +512,7 @@ namespace stack {
template <> template <>
struct pusher<userdata_value> { struct pusher<userdata_value> {
static int push(lua_State* L, userdata_value data) { static int push(lua_State* L, userdata_value data) {
void** ud = static_cast<void**>(lua_newuserdata(L, sizeof(void*))); void** ud = detail::usertype_allocate_pointer<void>(L);
*ud = data.value; *ud = data.value;
return 1; return 1;
} }

View File

@ -649,7 +649,8 @@ namespace sol {
umt.pop(); umt.pop();
stack::get_field<true>(L, gcmetakey); stack::get_field<true>(L, gcmetakey);
return stack::pop<light<umt_t>>(L); umt_t& target_umt = stack::pop<user<umt_t>>(L);
return target_umt;
} }
static int push(lua_State* L, umt_t&& umx) { static int push(lua_State* L, umt_t&& umx) {