4 #if defined (GLib_CreateConsole)
5 Ok = (AllocConsole() != 0);
6 HStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
7 IAssert(HStdOut != INVALID_HANDLE_VALUE);
12 #if defined (GLib_CreateConsole)
18 #if defined (GLib_Console)
19 #if defined (GLib_CreateConsole)
21 WriteConsole(HStdOut, LBf, LBfL, &ChsWritten, 0);
22 IAssert(ChsWritten == static_cast<DWORD>(LBfL));
24 fwrite(LBf,
sizeof(
char), LBfL, stdout);
31 sprintf(Bf,
"%d", Int);
32 PutBf((
void *) Bf,
int(strlen(Bf)));
38 sprintf(Bf,
"%u", UInt);
39 PutBf((
void *) Bf,
int(strlen(Bf)));
45 sprintf(Bf,
"%g", Flt);
46 PutBf((
void *) Bf,
int(strlen(Bf)));
53 sprintf(Bf,
"%g", Double);
54 PutBf((
void *) Bf,
int(strlen(Bf)));
60 sprintf(Bf,
"%Lg", LDouble);
61 PutBf((
void *) Bf,
int(strlen(Bf)));
66 static char Bf [2048];
67 va_list valist; va_start(valist, FmtStr);
68 int BfL=vsnprintf(Bf, 2048, FmtStr, valist); va_end(valist);
69 if (BfL!=-1){
PutBf((
void *) Bf, BfL);}
70 else {
PutBf((
void *) Bf, 2048);}
74 Con.
PutCh(
'\n');
return Con;
78 Con.
PutCh(
'\t');
return Con;
82 Con.
PutCh(
' ');
return Con;
85 #if defined (GLib_Console)
TCon & operator<<(const bool &Bool)
void PutBf(const void *LBf, const int &LBfL)
void operator()(const char *FmtStr,...)