mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 21:43:16 -07:00
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:
14
src/rom.c
14
src/rom.c
@@ -13,7 +13,7 @@
|
||||
* - c386sx16 BIOS fails checksum
|
||||
* - the loadfont() calls should be done elsewhere
|
||||
*
|
||||
* Version: @(#)rom.c 1.0.40 2018/10/02
|
||||
* Version: @(#)rom.c 1.0.41 2018/10/17
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -43,22 +43,22 @@ int romspresent[ROM_MAX];
|
||||
|
||||
#ifdef ENABLE_ROM_LOG
|
||||
int rom_do_log = ENABLE_ROM_LOG;
|
||||
#endif
|
||||
|
||||
|
||||
static void
|
||||
rom_log(const char *format, ...)
|
||||
rom_log(const char *fmt, ...)
|
||||
{
|
||||
#ifdef ENABLE_ROM_LOG
|
||||
va_list ap;
|
||||
|
||||
if (rom_do_log) {
|
||||
va_start(ap, format);
|
||||
pclog_ex(format, ap);
|
||||
va_start(ap, fmt);
|
||||
pclog_ex(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#define rom_log(fmt, ...)
|
||||
#endif
|
||||
|
||||
|
||||
FILE *
|
||||
|
||||
Reference in New Issue
Block a user