mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Replace luaL_reg with luaL_Reg as recent LuaJIT dropped the Lua 5.0 compat (#5541)
We are bundling Lua5.1 which has same macro
This commit is contained in:
@@ -32,7 +32,7 @@ class LuaPerlinNoise : public ModApiBase
|
||||
private:
|
||||
NoiseParams np;
|
||||
static const char className[];
|
||||
static const luaL_reg methods[];
|
||||
static const luaL_Reg methods[];
|
||||
|
||||
// Exported functions
|
||||
|
||||
@@ -64,7 +64,7 @@ class LuaPerlinNoiseMap : public ModApiBase
|
||||
Noise *noise;
|
||||
bool m_is3d;
|
||||
static const char className[];
|
||||
static const luaL_reg methods[];
|
||||
static const luaL_Reg methods[];
|
||||
|
||||
// Exported functions
|
||||
|
||||
@@ -103,7 +103,7 @@ private:
|
||||
PseudoRandom m_pseudo;
|
||||
|
||||
static const char className[];
|
||||
static const luaL_reg methods[];
|
||||
static const luaL_Reg methods[];
|
||||
|
||||
// Exported functions
|
||||
|
||||
@@ -134,7 +134,7 @@ private:
|
||||
PcgRandom m_rnd;
|
||||
|
||||
static const char className[];
|
||||
static const luaL_reg methods[];
|
||||
static const luaL_Reg methods[];
|
||||
|
||||
// Exported functions
|
||||
|
||||
@@ -169,7 +169,7 @@ class LuaSecureRandom : public ModApiBase
|
||||
private:
|
||||
static const size_t RAND_BUF_SIZE = 2048;
|
||||
static const char className[];
|
||||
static const luaL_reg methods[];
|
||||
static const luaL_Reg methods[];
|
||||
|
||||
u32 m_rand_idx;
|
||||
char m_rand_buf[RAND_BUF_SIZE];
|
||||
|
Reference in New Issue
Block a user