MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / createLuaStateAudio

Method createLuaStateAudio

Source/Lua/CtrlrLuaManager.cpp:165–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void CtrlrLuaManager::createLuaStateAudio()
166{
167 luaStateAudio = luaL_newstate();
168
169 lua_pushcfunction(luaStateAudio, luaopen_base);
170 lua_pushliteral(luaStateAudio, "base");
171 lua_call(luaStateAudio, 1, 0);
172
173 lua_pushcfunction(luaStateAudio, luaopen_table);
174 lua_pushliteral(luaStateAudio, "table");
175 lua_call(luaStateAudio, 1, 0);
176
177 lua_pushcfunction(luaStateAudio, luaopen_string);
178 lua_pushliteral(luaStateAudio, "string");
179 lua_call(luaStateAudio, 1, 0);
180
181 lua_pushcfunction(luaStateAudio, luaopen_math);
182 lua_pushliteral(luaStateAudio, "math");
183 lua_call(luaStateAudio, 1, 0);
184
185 lua_pushcfunction(luaStateAudio, luaopen_debug);
186 lua_pushliteral(luaStateAudio, "debug");
187 lua_call(luaStateAudio, 1, 0);
188
189 lua_pushcfunction(luaStateAudio, luaopen_package);
190 lua_pushliteral(luaStateAudio, "package");
191 lua_call(luaStateAudio, 1, 0);
192
193 lua_pushcfunction(luaState, luaopen_bit);
194 lua_pushliteral(luaState, "bit");
195 lua_call(luaState, 1, 0);
196
197 using namespace luabind;
198 open(luaStateAudio);
199 luabind::bind_class_info(luaStateAudio);
200
201 set_pcall_callback (add_file_and_line);
202}
203
204CtrlrLuaMethodManager &CtrlrLuaManager::getMethodManager()
205{

Callers

nothing calls this directly

Calls 5

luaL_newstateFunction · 0.85
lua_callFunction · 0.85
bind_class_infoFunction · 0.85
set_pcall_callbackFunction · 0.85
openFunction · 0.50

Tested by

no test coverage detected