mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
Small core cleanup (nw)
This commit is contained in:
parent
77da31b99c
commit
0c727fc6d3
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -2170,7 +2170,6 @@ src/emu/emuopts.c svneol=native#text/plain
|
||||
src/emu/emuopts.h svneol=native#text/plain
|
||||
src/emu/emupal.c svneol=native#text/plain
|
||||
src/emu/emupal.h svneol=native#text/plain
|
||||
src/emu/emutempl.h svneol=native#text/plain
|
||||
src/emu/fileio.c svneol=native#text/plain
|
||||
src/emu/fileio.h svneol=native#text/plain
|
||||
src/emu/gamedrv.h svneol=native#text/plain
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
// core emulator headers -- must be first
|
||||
#include "emucore.h"
|
||||
#include "emutempl.h"
|
||||
#include "eminline.h"
|
||||
#include "profiler.h"
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Aaron Giles
|
||||
/***************************************************************************
|
||||
|
||||
emutempl.h
|
||||
|
||||
Core templates for basic non-string types.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __EMUTEMPL_H__
|
||||
#define __EMUTEMPL_H__
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
//**************************************************************************
|
||||
|
||||
|
||||
#endif /* __EMUTEMPL_H__ */
|
@ -783,23 +783,6 @@ void running_machine::add_logerror_callback(logerror_callback callback)
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// logerror - printf-style error logging
|
||||
//-------------------------------------------------
|
||||
|
||||
void CLIB_DECL running_machine::logerror(const char *format, ...)
|
||||
{
|
||||
// process only if there is a target
|
||||
if (m_logerror_list.first() != NULL)
|
||||
{
|
||||
va_list arg;
|
||||
va_start(arg, format);
|
||||
vlogerror(format, arg);
|
||||
va_end(arg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// vlogerror - vprintf-style error logging
|
||||
//-------------------------------------------------
|
||||
|
@ -251,7 +251,6 @@ public:
|
||||
void watchdog_enable(bool enable = true);
|
||||
|
||||
// misc
|
||||
void CLIB_DECL logerror(const char *format, ...) ATTR_PRINTF(2,3);
|
||||
void CLIB_DECL vlogerror(const char *format, va_list args);
|
||||
UINT32 rand();
|
||||
const char *describe_context();
|
||||
|
@ -121,16 +121,6 @@ static output_delegate output_cb[OUTPUT_CHANNEL_COUNT] =
|
||||
CORE IMPLEMENTATION
|
||||
***************************************************************************/
|
||||
|
||||
/*-------------------------------------------------
|
||||
mame_is_valid_machine - return true if the
|
||||
given machine is valid
|
||||
-------------------------------------------------*/
|
||||
|
||||
int mame_is_valid_machine(running_machine &machine)
|
||||
{
|
||||
return (&machine == global_machine);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
mame_execute - run the core emulation
|
||||
-------------------------------------------------*/
|
||||
@ -397,18 +387,8 @@ void CLIB_DECL logerror(const char *format, ...)
|
||||
{
|
||||
va_list arg;
|
||||
va_start(arg, format);
|
||||
vlogerror(format, arg);
|
||||
if (global_machine != NULL)
|
||||
global_machine->vlogerror(format, arg);
|
||||
va_end(arg);
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------
|
||||
vlogerror - log to the debugger and any other
|
||||
OSD-defined output streams
|
||||
-------------------------------------------------*/
|
||||
|
||||
void CLIB_DECL vlogerror(const char *format, va_list arg)
|
||||
{
|
||||
if (global_machine != NULL)
|
||||
global_machine->vlogerror(format, arg);
|
||||
}
|
||||
|
@ -129,7 +129,6 @@ void CLIB_DECL popmessage(const char *format, ...) ATTR_PRINTF(1,2);
|
||||
|
||||
// log to the standard error.log file
|
||||
void CLIB_DECL logerror(const char *format, ...) ATTR_PRINTF(1,2);
|
||||
void CLIB_DECL vlogerror(const char *format, va_list arg);
|
||||
|
||||
|
||||
#endif /* __MAME_H__ */
|
||||
|
@ -14,7 +14,6 @@
|
||||
#define __OSDEPEND_H__
|
||||
|
||||
#include "emucore.h"
|
||||
#include "emutempl.h"
|
||||
#include "osdcore.h"
|
||||
#include "unicode.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user