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:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* x86 CPU segment emulation.
|
||||
*
|
||||
* Version: @(#)x86seg.c 1.0.7 2018/04/29
|
||||
* Version: @(#)x86seg.c 1.0.8 2018/10/17
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -63,13 +63,11 @@ void pmodeint(int num, int soft);
|
||||
|
||||
#ifdef ENABLE_X86SEG_LOG
|
||||
int x86seg_do_log = ENABLE_X86SEG_LOG;
|
||||
#endif
|
||||
|
||||
|
||||
static void
|
||||
x86seg_log(const char *fmt, ...)
|
||||
{
|
||||
#ifdef ENABLE_X86SEG_LOG
|
||||
va_list ap;
|
||||
|
||||
if (x86seg_do_log) {
|
||||
@@ -77,8 +75,10 @@ x86seg_log(const char *fmt, ...)
|
||||
pclog_ex(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#define x86seg_log(fmt, ...)
|
||||
#endif
|
||||
|
||||
|
||||
void x86abort(const char *format, ...)
|
||||
|
||||
Reference in New Issue
Block a user