Added some assertions

This commit is contained in:
Nathan Woods 2008-07-26 20:49:28 +00:00
parent b3ee2ffd1f
commit a08d7977c3

View File

@ -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;
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 (machine != NULL)
{