Prevent luaL_newlib macro redefinition (#1198)

This commit is contained in:
Marcin Michalski 2022-11-26 00:28:21 +00:00 committed by GitHub
parent 4a39d49fc1
commit 0e5de3383e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,6 +158,7 @@ static lua_Unsigned luaL_checkunsigned (lua_State *L, int arg) {
#define LUAMOD_API LUALIB_API
#define LUA_BIT32LIBNAME "bit32"
#undef luaL_newlib
#define luaL_newlib(x, y) luaL_register(x, LUA_BIT32LIBNAME, y)
/* ----- avoid a 'symbol redefined' warning below ----- */