File:  [HATARI the Atari ST Emulator] / hatari / src / cpu / writelog.c
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:59:10 2019 UTC (7 years, 3 months ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, HEAD
hatari 2.2.0

 /*
  * UAE - The Un*x Amiga Emulator
  *
  * Standard write_log that writes to the console
  *
  * Copyright 2001 Bernd Schmidt
  */
#include "sysconfig.h"
#include "sysdeps.h"

#ifndef WINUAE_FOR_HATARI
bool bCpuWriteLog = true;

void write_log (const char *fmt, ...)
{
	va_list ap;

	if (!bCpuWriteLog)
		return;

	va_start (ap, fmt);
	vfprintf (stderr, fmt, ap);
	va_end (ap);
}

#endif

void f_out (void *f, const TCHAR *format, ...)
{
	va_list parms;

	if (f == NULL)
		return;

	va_start (parms, format);
	vfprintf (f, format, parms);
	va_end (parms);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.