mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Rename constant C2LIB -> c2lib
This commit is contained in:
parent
55d8a31b49
commit
456c7f80a8
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ void PluginController::openLibrariesFor(lua_State *L,
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOLINTNEXTLINE(*-avoid-c-arrays)
|
// NOLINTNEXTLINE(*-avoid-c-arrays)
|
||||||
static const luaL_Reg C2LIB[] = {
|
static const luaL_Reg c2Lib[] = {
|
||||||
{"system_msg", lua::api::c2_system_msg},
|
{"system_msg", lua::api::c2_system_msg},
|
||||||
{"register_command", lua::api::c2_register_command},
|
{"register_command", lua::api::c2_register_command},
|
||||||
{"send_msg", lua::api::c2_send_msg},
|
{"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)
|
// count of elements in C2LIB - 1 (to account for terminator)
|
||||||
lua::pushEmptyTable(L, 3);
|
lua::pushEmptyTable(L, 3);
|
||||||
|
|
||||||
luaL_setfuncs(L, C2LIB, 0);
|
luaL_setfuncs(L, c2Lib, 0);
|
||||||
lua_setfield(L, global, "c2");
|
lua_setfield(L, global, "c2");
|
||||||
|
|
||||||
// ban functions
|
// ban functions
|
||||||
|
|
Loading…
Reference in a new issue