mirror of
https://github.com/holub/mame
synced 2025-05-04 13:33:05 +03:00
Added compile-time error if PTR64 is incorrectly set.
This commit is contained in:
parent
a5abe031ca
commit
48332dea92
@ -27,6 +27,19 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
COMPILE-TIME VALIDATION
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
/* if the following lines error during compile, your PTR64 switch is set incorrectly in the makefile */
|
||||||
|
#ifdef PTR64
|
||||||
|
UINT8 your_ptr64_flag_is_wrong[(int)(sizeof(void *) - 7)];
|
||||||
|
#else
|
||||||
|
UINT8 your_ptr64_flag_is_wrong[(int)(5 - sizeof(void *))];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
CONSTANTS
|
CONSTANTS
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user