mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
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:
parent
63e396b996
commit
b8aa189e32
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user