| 268 | //=========================================================================== |
| 269 | |
| 270 | static 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 | // |
no test coverage detected