mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-26 13:29:28 +00:00
13 lines
321 B
C
13 lines
321 B
C
extern void abort (void);
|
|
|
|
/* Since GCC 5 folds symbol address comparison, assuming each symbol has
|
|
different address, &foo == &bar is always false for GCC 5. Use
|
|
check_ptr_eq to check if two functions are the same. */
|
|
|
|
void
|
|
check_ptr_eq (void (*f1) (void), void (*f2) (void))
|
|
{
|
|
if (f1 != f2)
|
|
abort ();
|
|
}
|