This pull request addresses the incompatibilities introduced in Lua 5.4, where lua_newuserdata was replaced by lua_newuserdatauv
Proposed changes
Introduced LUASQL_NEWUD macro to abstract the differences between lua_newuserdata and lua_newuserdatauv.
This change improves code readability and reduces redundancy by centralizing the version check and userdata creation logic.
Updated all drivers to use the LUASQL_NEWUD macro for consistent and version-agnostic userdata creation.
Summary
This pull request addresses the incompatibilities introduced in Lua 5.4, where
lua_newuserdata
was replaced bylua_newuserdatauv
Proposed changes
LUASQL_NEWUD
macro to abstract the differences betweenlua_newuserdata
andlua_newuserdatauv
. This change improves code readability and reduces redundancy by centralizing the version check and userdata creation logic.LUASQL_NEWUD
macro for consistent and version-agnostic userdata creation.