mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
01f9d05f23
commit
41c5483024
24 changed files with 35 additions and 35 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue