MCPcopy Create free account
hub / github.com/ZDoom/Raze / CT_AddChar

Function CT_AddChar

source/core/ct_chat.cpp:270–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268//===========================================================================
269
270static void CT_AddChar (int c)
271{
272 if (ChatQueue.Size() < QUEUESIZE-2)
273 {
274 int size;
275 auto encode = MakeUTF8(c, &size);
276 if (*encode)
277 {
278 for (int i = 0; i < size; i++)
279 {
280 ChatQueue.Push(encode[i]);
281 }
282 }
283 }
284}
285
286//===========================================================================
287//

Callers 2

CT_ResponderFunction · 0.85
CT_PasteChatFunction · 0.85

Calls 3

MakeUTF8Function · 0.85
SizeMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected