home *** CD-ROM | disk | FTP | other *** search
- /*-----------------------------------------------------------------------*
- * filename - pureerr.cpp
- * Error routine linked in when pure function called
- *-----------------------------------------------------------------------*/
-
- /*[]------------------------------------------------------------[]*/
- /*| |*/
- /*| Turbo C++ Run Time Library - Version 1.0 |*/
- /*| |*/
- /*| |*/
- /*| Copyright (c) 1990 by Borland International |*/
- /*| All Rights Reserved. |*/
- /*| |*/
- /*[]------------------------------------------------------------[]*/
-
- /*
- A pointer to this routine is linked into virtual vectors whenever
- a virtual function has been declared pure. Ideally, the error
- message should be printed without using printf or stream I/O,
- since we would rather not pull in the code for those. Such a
- result is system-dependent and beyond the scope of this implementation.
- */
-
- #include <stdlib.h>
- #include <stdio.h>
-
- extern "C" void near _npure_error_()
- {
- printf("Pure virtual function called\n");
- exit(EXIT_FAILURE);
- }
-
- extern "C" void far _fpure_error_()
- {
- printf("Pure virtual function called\n");
- exit(EXIT_FAILURE);
- }
-