From 65d7db3487cc318dd764481193feb90bb6a897cd Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Tue, 7 Mar 2023 22:35:00 -0600 Subject: Use an older name for luaL_reg --- src/client/lua_api/scene/icamera.cpp | 6 +++--- src/client/lua_api/scene/igeneric.cpp | 2 +- src/client/lua_api/scene/igeneric.hpp | 2 +- src/client/lua_api/scene/ilight.cpp | 2 +- src/client/lua_api/scene/imesh.cpp | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/client/lua_api/scene') diff --git a/src/client/lua_api/scene/icamera.cpp b/src/client/lua_api/scene/icamera.cpp index 34b3447..8a129b5 100644 --- a/src/client/lua_api/scene/icamera.cpp +++ b/src/client/lua_api/scene/icamera.cpp @@ -192,18 +192,18 @@ static int icamerasettarget(lua_State *L){ return 0; } -static const luaL_reg icamera_m[] = { +static const luaL_Reg icamera_m[] = { {"bindtarget", icamerabindtarget}, {"gettarget", icameragettarget}, {"settarget", icamerasettarget}, {0,0}, }; -static const luaL_reg imayacamera_m[] = { +static const luaL_Reg imayacamera_m[] = { {0,0}, }; -static const luaL_reg ifpscamera_m[] = { +static const luaL_Reg ifpscamera_m[] = { {0,0}, }; diff --git a/src/client/lua_api/scene/igeneric.cpp b/src/client/lua_api/scene/igeneric.cpp index a0c33b3..bd6973c 100644 --- a/src/client/lua_api/scene/igeneric.cpp +++ b/src/client/lua_api/scene/igeneric.cpp @@ -269,7 +269,7 @@ int isceneremove(lua_State *L){ return 1; } -extern const luaL_reg igeneric_m[] = { +extern const luaL_Reg igeneric_m[] = { {"getpos", iscenegetpos}, {"setpos", iscenesetpos}, {"getang", iscenegetangle}, diff --git a/src/client/lua_api/scene/igeneric.hpp b/src/client/lua_api/scene/igeneric.hpp index 9e3d6f6..f015918 100644 --- a/src/client/lua_api/scene/igeneric.hpp +++ b/src/client/lua_api/scene/igeneric.hpp @@ -15,5 +15,5 @@ int iscenegetangle(lua_State* L); int iscenesetangle(lua_State* L); int iscenesetmaterial(lua_State* L); -extern const luaL_reg igeneric_m[]; +extern const luaL_Reg igeneric_m[]; #endif diff --git a/src/client/lua_api/scene/ilight.cpp b/src/client/lua_api/scene/ilight.cpp index e405443..ad3b440 100644 --- a/src/client/lua_api/scene/ilight.cpp +++ b/src/client/lua_api/scene/ilight.cpp @@ -80,7 +80,7 @@ int settype(lua_State *L){ return 0; } -static const luaL_reg ilight_m[] = { +static const luaL_Reg ilight_m[] = { {"settype", settype}, {0, 0}, }; diff --git a/src/client/lua_api/scene/imesh.cpp b/src/client/lua_api/scene/imesh.cpp index 479da15..b3d32df 100644 --- a/src/client/lua_api/scene/imesh.cpp +++ b/src/client/lua_api/scene/imesh.cpp @@ -79,7 +79,7 @@ int newiscenecube(lua_State* L){//{v3 size}, {v3 origin} return 1; } -static const luaL_reg imesh_m[] = { +static const luaL_Reg imesh_m[] = { //{"setMaterial", iscenesetmaterial}, //{"getpos", iscenegetpos}, //{"setpos", iscenesetpos}, @@ -87,7 +87,7 @@ static const luaL_reg imesh_m[] = { {0, 0}, }; -static const luaL_reg icube_m[] = { +static const luaL_Reg icube_m[] = { {0,0}, }; -- cgit v1.2.3-70-g09d2