blob: abaed59177fd851c5a1a1fc4ea97be15ed3cad7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
#ifdef __GNU_LIBRARY__
/* Avoid forcing the library's meaning of `write' on the user program
by using the "internal" name (for use within the library) */
#define write(fd, buf, n) __write((fd), (buf), (n))
#endif
#define MESSAGE "pure virtual method called\n"
void
__pure_virtual (void)
{
write (2, MESSAGE, sizeof (MESSAGE) - 1);
__terminate ();
}
|