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:
@@ -295,13 +295,11 @@ uint32_t rep_count_w = 0;
|
||||
|
||||
#ifdef ENABLE_EMU8K_LOG
|
||||
int emu8k_do_log = ENABLE_EMU8K_LOG;
|
||||
#endif
|
||||
|
||||
|
||||
static void
|
||||
emu8k_log(const char *fmt, ...)
|
||||
{
|
||||
#ifdef ENABLE_EMU8K_LOG
|
||||
va_list ap;
|
||||
|
||||
if (emu8k_do_log) {
|
||||
@@ -309,8 +307,10 @@ emu8k_log(const char *fmt, ...)
|
||||
pclog_ex(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#define emu8k_log(fmt, ...)
|
||||
#endif
|
||||
|
||||
|
||||
static inline int16_t EMU8K_READ(emu8k_t *emu8k, uint32_t addr)
|
||||
|
||||
Reference in New Issue
Block a user