MCPcopy Create free account
hub / github.com/crawl/crawl / initialise_mpr_streams

Function initialise_mpr_streams

crawl-ref/source/message-stream.cc:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 void initialise_mpr_streams()
25 {
26 for (int i = 0; i < NUM_MESSAGE_CHANNELS; ++i)
27 {
28 mpr_stream_buf* pmsb =
29 new mpr_stream_buf(static_cast<msg_channel_type>(i));
30 ostream* pos = new ostream(pmsb);
31 (*pos) << nounitbuf;
32 stream_ptrs.push_back(pos);
33 stream_buffers.push_back(pmsb);
34 }
35 stream << nounitbuf;
36 }
37
38 void deinitialise_mpr_streams()
39 {

Callers 1

_initializeFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected