home *** CD-ROM | disk | FTP | other *** search
/ Instant Doom Levels / Instant.Doom.Levels.-.Level.Master.II.iso / EDITORS / ZIPPED / WSCDEU52.ZIP / INCLUDE / MEMORY.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  2KB  |  41 lines

  1. /*----------------------------------------------------------------------------*
  2.  | This file is part of WinDEU, the port of DEU to Windows.                   |
  3.  | WinDEU was created by the DEU team:                                        |
  4.  |  Renaud Paquay, Raphael Quinet, Brendon Wyber and others...                |
  5.  |                                                                            |
  6.  | DEU is an open project: if you think that you can contribute, please join  |
  7.  | the DEU team.  You will be credited for any code (or ideas) included in    |
  8.  | the next version of the program.                                           |
  9.  |                                                                            |
  10.  | If you want to make any modifications and re-distribute them on your own,  |
  11.  | you must follow the conditions of the WinDEU license. Read the file        |
  12.  | LICENSE or README.TXT in the top directory.  If do not  have a copy of     |
  13.  | these files, you can request them from any member of the DEU team, or by   |
  14.  | mail: Raphael Quinet, Rue des Martyrs 9, B-4550 Nandrin (Belgium).         |
  15.  |                                                                            |
  16.  | This program comes with absolutely no warranty.  Use it at your own risks! |
  17.  *----------------------------------------------------------------------------*
  18.  
  19.     Project WinDEU
  20.     DEU team
  21.     Jul-Dec 1994, Jan-Mar 1995
  22.  
  23.     FILE:         memory.h
  24. */
  25. #ifndef __memory_h
  26. #define __memory_h
  27.  
  28. #ifndef __common_h
  29.     #include "common.h"
  30. #endif
  31.  
  32. /* from memory.cpp */
  33. void *AllocMemory (ULONG size);
  34. void *ReallocMemory (void *old, ULONG size);
  35. void UnallocMemory (void *);
  36. ULONG GetAvailMemory ();
  37. #define GetMemory(s)      AllocMemory((ULONG)s)
  38. #define ResizeMemory(p,s) ReallocMemory((p),(ULONG)s)
  39. #define FreeMemory(p)      {assert((p) != NULL); UnallocMemory(p); (p) = NULL;}
  40.  
  41. #endif