Revert to using 1 for lua_newuserdatauv

- This needs to be addressed in the future
- Prevents failures when "attaching" a free-standing table.
This commit is contained in:
ThePhD 2020-11-02 05:53:57 -05:00
parent 63e396b996
commit b8aa189e32
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
4 changed files with 8 additions and 8 deletions

View File

@ -66,7 +66,7 @@ namespace sol {
inline void* alloc_newuserdata(lua_State* L, std::size_t bytesize) {
#if SOL_LUA_VERSION >= 504
return lua_newuserdatauv(L, bytesize, 0);
return lua_newuserdatauv(L, bytesize, 1);
#else
return lua_newuserdata(L, bytesize);
#endif

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script.
// Generated 2020-10-24 08:52:46.516426 UTC
// This header was generated with sol v3.2.3 (revision 651b90ba)
// Generated 2020-11-02 10:53:05.003420 UTC
// This header was generated with sol v3.2.3 (revision 63e396b9)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_CONFIG_HPP

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script.
// Generated 2020-10-24 08:52:46.504426 UTC
// This header was generated with sol v3.2.3 (revision 651b90ba)
// Generated 2020-11-02 10:53:04.990407 UTC
// This header was generated with sol v3.2.3 (revision 63e396b9)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script.
// Generated 2020-10-24 08:52:45.802426 UTC
// This header was generated with sol v3.2.3 (revision 651b90ba)
// Generated 2020-11-02 10:53:04.356408 UTC
// This header was generated with sol v3.2.3 (revision 63e396b9)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP
@ -9839,7 +9839,7 @@ namespace sol {
inline void* alloc_newuserdata(lua_State* L, std::size_t bytesize) {
#if SOL_LUA_VERSION >= 504
return lua_newuserdatauv(L, bytesize, 0);
return lua_newuserdatauv(L, bytesize, 1);
#else
return lua_newuserdata(L, bytesize);
#endif