home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / nomemory.cpp < prev    next >
C/C++ Source or Header  |  1998-06-16  |  362b  |  19 lines

  1. // nomemory -- report out of memory
  2. #include <new>
  3. _STD_BEGIN
  4.  
  5. void _CRTIMP2 __cdecl _Nomemory()
  6.     {    // report out of memory
  7.     static const bad_alloc nomem;
  8.     _RAISE(nomem);
  9.     }
  10.  
  11. const nothrow_t nothrow;
  12.  
  13. _STD_END
  14.  
  15. /*
  16.  * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
  17.  * Consult your license regarding permissions and restrictions.
  18.  */
  19.