MCPcopy Create free account
hub / github.com/MihailRis/voxelcore / initialize_libs_extends

Function initialize_libs_extends

src/logic/scripting/lua/lua_extensions.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void 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}

Callers 1

initializeMethod · 0.85

Calls 4

getglobalFunction · 0.85
pushcfunctionFunction · 0.85
setfieldFunction · 0.85
popFunction · 0.85

Tested by

no test coverage detected