Rename constant C2LIB -> c2lib

This commit is contained in:
Mm2PL 2023-02-07 21:50:16 +01:00
parent 55d8a31b49
commit 456c7f80a8
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -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