mirror of
https://github.com/holub/mame
synced 2025-07-06 10:29:38 +03:00
Added some assertions
This commit is contained in:
parent
b3ee2ffd1f
commit
a08d7977c3
@ -1139,6 +1139,9 @@ const input_seq *input_type_seq(running_machine *machine, int type, int player,
|
|||||||
{
|
{
|
||||||
static const input_seq ip_none = SEQ_DEF_0;
|
static const input_seq ip_none = SEQ_DEF_0;
|
||||||
|
|
||||||
|
assert((type >= 0) && (type < __ipt_max));
|
||||||
|
assert((player >= 0) && (player < MAX_PLAYERS));
|
||||||
|
|
||||||
/* if we have a machine, use the live state and quick lookup */
|
/* if we have a machine, use the live state and quick lookup */
|
||||||
if (machine != NULL)
|
if (machine != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user