Change to logging - when logging is disabled, the logging functions are now #define'd to nothing, so the compiler ignores the lines that call them completely, seems to slightly speed up the emulator; note that the logging in vid_table.c has not been changed yet, because this file on my local tree currently contains other WIP changes.
This commit is contained in:
21
src/isartc.c
21
src/isartc.c
@@ -28,7 +28,7 @@
|
||||
* NOTE: The IRQ functionalities have been implemented, but not yet
|
||||
* tested, as I need to write test software for them first :)
|
||||
*
|
||||
* Version: @(#)isartc.c 1.0.6 2018/10/07
|
||||
* Version: @(#)isartc.c 1.0.7 2018/10/17
|
||||
*
|
||||
* Author: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
*
|
||||
@@ -151,23 +151,22 @@ typedef struct {
|
||||
|
||||
#ifdef ENABLE_ISARTC_LOG
|
||||
int isartc_do_log = ENABLE_ISARTC_LOG;
|
||||
#endif
|
||||
|
||||
|
||||
static void
|
||||
isartc_log(const char *fmt, ...)
|
||||
{
|
||||
#ifdef ENABLE_ISARTC_LOG
|
||||
va_list ap;
|
||||
va_list ap;
|
||||
|
||||
if (isartc_do_log)
|
||||
{
|
||||
va_start(ap, fmt);
|
||||
pclog_ex(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
#endif
|
||||
if (isartc_do_log) {
|
||||
va_start(ap, fmt);
|
||||
pclog_ex(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define isartc_log(fmt, ...)
|
||||
#endif
|
||||
|
||||
|
||||
/* Check if the current time matches a set alarm time. */
|
||||
|
||||
Reference in New Issue
Block a user