MCPcopy Create free account
hub / github.com/DFHack/dfhack / set_dfhack_output

Function set_dfhack_output

library/LuaTools.cpp:312–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312static void set_dfhack_output(lua_State *L, color_ostream *p)
313{
314 lua_pushlightuserdata(L, p);
315 lua_rawsetp(L, LUA_REGISTRYINDEX, &DFHACK_OSTREAM_TOKEN);
316}
317
318static Console *get_console(lua_State *state)
319{

Callers 3

SafeCallMethod · 0.85
SafeResumeMethod · 0.85
InvokeMethod · 0.85

Calls 2

lua_pushlightuserdataFunction · 0.85
lua_rawsetpFunction · 0.85

Tested by

no test coverage detected