| 163 | } |
| 164 | |
| 165 | void 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 | |
| 204 | CtrlrLuaMethodManager &CtrlrLuaManager::getMethodManager() |
| 205 | { |
nothing calls this directly
no test coverage detected