From 456c7f80a8f863e92b7a1d3cbb0bc0f6942ad7eb Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Tue, 7 Feb 2023 21:50:16 +0100 Subject: [PATCH] Rename constant C2LIB -> c2lib --- src/controllers/plugins/PluginController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/plugins/PluginController.cpp b/src/controllers/plugins/PluginController.cpp index f719933bd..49cb26bfa 100644 --- a/src/controllers/plugins/PluginController.cpp +++ b/src/controllers/plugins/PluginController.cpp @@ -151,7 +151,7 @@ void PluginController::openLibrariesFor(lua_State *L, } // NOLINTNEXTLINE(*-avoid-c-arrays) - static const luaL_Reg C2LIB[] = { + static const luaL_Reg c2Lib[] = { {"system_msg", lua::api::c2_system_msg}, {"register_command", lua::api::c2_register_command}, {"send_msg", lua::api::c2_send_msg}, @@ -163,7 +163,7 @@ void PluginController::openLibrariesFor(lua_State *L, // count of elements in C2LIB - 1 (to account for terminator) lua::pushEmptyTable(L, 3); - luaL_setfuncs(L, C2LIB, 0); + luaL_setfuncs(L, c2Lib, 0); lua_setfield(L, global, "c2"); // ban functions