| 17 | } |
| 18 | |
| 19 | static void remove_lib_funcs(lua::State* L, const char* libname, const char* funcs[]) { |
| 20 | if (getglobal(L, libname)) { |
| 21 | for (uint i = 0; funcs[i]; i++) { |
| 22 | pushnil(L); |
| 23 | setfield(L, funcs[i], -2); |
| 24 | } |
| 25 | pop(L); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | static void create_libs(lua::State* L) { |
| 30 | openlib(L, "audio", audiolib); |
no test coverage detected