Previous 15994 Revisions Next

r9824 Sunday 26th December, 2010 at 16:02:42 UTC by Miodrag Milanović
Fixed debug mode compile
[src/mess/machine]docg3.c

src/mess/machine/docg3.c
r9823r9824
6464INLINE diskonchip_g3_t *get_token( running_device *device)
6565{
6666   assert(device != NULL);
67   assert(device->type == DISKONCHIP_G3);
68   assert(device->token != NULL);
67   assert(device->type() == DISKONCHIP_G3);
68   assert(downcast<legacy_device_base *>(device)->token() != NULL);
6969   return (diskonchip_g3_t *)downcast<legacy_device_base *>(device)->token();
7070}
7171 
7272INLINE const diskonchip_g3_config *get_config( running_device *device)
7373{
7474   assert(device != NULL);
75   assert(device->type == DISKONCHIP_G3);
76   assert(device->inline_config != NULL);
75   assert(device->type() == DISKONCHIP_G3);   
76   assert(downcast<const legacy_device_config_base &>(device->baseconfig()).inline_config() != NULL);
7777   return (const diskonchip_g3_config *)downcast<const legacy_device_config_base &>(device->baseconfig()).inline_config();
7878}
7979 

Previous 15994 Revisions Next


© 1998-2018 The MESS Team