mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Move chatterino global namespace shit into a namespace
This commit is contained in:
parent
13d2ff870f
commit
3ee84ff444
1 changed files with 6 additions and 0 deletions
|
@ -341,7 +341,13 @@ static const luaL_Reg C2LIB[] = {
|
||||||
void PluginController::loadChatterinoLib(lua_State *L)
|
void PluginController::loadChatterinoLib(lua_State *L)
|
||||||
{
|
{
|
||||||
lua_pushglobaltable(L);
|
lua_pushglobaltable(L);
|
||||||
|
auto global = lua_gettop(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");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PluginController::isEnabled(const QString &codename)
|
bool PluginController::isEnabled(const QString &codename)
|
||||||
|
|
Loading…
Reference in a new issue