| 1474 | FreeConsole(); |
| 1475 | } |
| 1476 | inline void init() { |
| 1477 | AllocConsole(); |
| 1478 | freopen("CONIN$", "r", stdin); |
| 1479 | freopen("CONOUT$", "w", stdout); |
| 1480 | freopen("CONOUT$", "w", stderr); |
| 1481 | } |
| 1482 | SINGLETON_REF(Console); |
| 1483 | SINGLETON_REF(AsyncLogThread, Console); |
| 1484 | }; |