#include "host.h"
#include "callcpp.h"
Go to the source code of this file.
| #define ILLEGALMALLOCREQUEST 2001 |
| #define NOTENOUGHMEMORY 2000 |
Include Files and Type Defines
Definition at line 27 of file emalloc.h.
Definition at line 85 of file emalloc.cpp.
void DoError(int Error, const char *Message)
#define ILLEGALMALLOCREQUEST
| void* Emalloc |
( |
size_t |
Size | ) |
|
Public Function Prototypes
Include Files and Type Defines
Public Code
Definition at line 35 of file emalloc.cpp.
58 Buffer = (
void *) malloc (Size);
void DoError(int Error, const char *Message)
#define ILLEGALMALLOCREQUEST
| void* Erealloc |
( |
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
Definition at line 70 of file emalloc.cpp.
73 if (size < 0 || (size == 0 && ptr ==
NULL))
76 Buffer = (
void *) realloc (ptr, size);
77 if (Buffer ==
NULL && size != 0)
void DoError(int Error, const char *Message)
#define ILLEGALMALLOCREQUEST