| 23 | } |
| 24 | |
| 25 | void initialize_libs_extends(lua::State* L) { |
| 26 | if (lua::getglobal(L, "debug")) { |
| 27 | |
| 28 | lua::pushcfunction(L, lua::wrap<l_debug_error>); |
| 29 | lua::setfield(L, "error"); |
| 30 | |
| 31 | lua::pushcfunction(L, lua::wrap<l_debug_warning>); |
| 32 | lua::setfield(L, "warning"); |
| 33 | |
| 34 | lua::pushcfunction(L, lua::wrap<l_debug_log>); |
| 35 | lua::setfield(L, "log"); |
| 36 | |
| 37 | lua::pop(L); |
| 38 | } |
| 39 | } |
no test coverage detected