| 295 | static int DFHACK_OSTREAM_TOKEN = 0; |
| 296 | |
| 297 | color_ostream *DFHack::Lua::GetOutput(lua_State *L) |
| 298 | { |
| 299 | lua_rawgetp(L, LUA_REGISTRYINDEX, &DFHACK_OSTREAM_TOKEN); |
| 300 | auto rv = (color_ostream*)lua_touserdata(L, -1); |
| 301 | lua_pop(L, 1); |
| 302 | return rv; |
| 303 | } |
| 304 | |
| 305 | df::cur_lua_ostream_argument::cur_lua_ostream_argument(lua_State *state) |
| 306 | { |
nothing calls this directly
no test coverage detected