Previous 15994 Revisions Next

r6412 Wednesday 18th November, 2009 at 12:12:46 UTC by Miodrag Milanović
Proper assert for floppy drive device check
[src/mess/devices]flopdrv.c

src/mess/devices/flopdrv.c
r6411r6412
115115/***************************************************************************
116116    IMPLEMENTATION
117117***************************************************************************/
118extern DEVICE_GET_INFO(apple525);
119extern DEVICE_GET_INFO(sonydriv);
118120
119121INLINE floppy_drive *get_safe_token(const device_config *device)
120122{
121123   assert( device != NULL );
122124   assert( device->token != NULL );
123   assert( device->type == DEVICE_GET_INFO_NAME(floppy) );
125   assert( device->type == DEVICE_GET_INFO_NAME(floppy) || device->type == DEVICE_GET_INFO_NAME(apple525) || device->type == DEVICE_GET_INFO_NAME(sonydriv));
124126   return (floppy_drive *) device->token;
125127}
126128

Previous 15994 Revisions Next


© 1998-2018 The MESS Team