Updated the console screen driver.

committer: mfx <mfx> 968567552 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-09-10 06:32:32 +00:00
parent 65601b5c26
commit ce00884d1e
3 changed files with 120 additions and 48 deletions
+37
View File
@@ -100,8 +100,45 @@ screen_t *screen_win32_construct(void);
void screen_show_frames(screen_t *);
/*************************************************************************
// debugging support
**************************************************************************/
#if 0
#undef LOG
#undef LOGI
#undef LOGU
#undef LOGS
#if defined(SCREEN_DEBUG)
static void LOG(const char *format, ...)
{
static FILE *logfile = NULL;
va_list args;
if (!logfile)
logfile = fopen("screen.log", "wt");
va_start(args,format);
vfprintf(logfile,format,args);
fflush(logfile);
va_end(args);
}
# define LOGI(x) LOG(#x " %ld\n", (long)(x))
# define LOGU(x) LOG(#x " %lu\n", (long)(x))
# define LOGS(x) LOG(#x " %s\n", x)
#else
# define LOGI(x)
# define LOGU(x)
# define LOGS(x)
#endif
#endif /* if #0 */
#endif /* USE_SCREEN */
#endif /* already included */