Logo Search packages:      
Sourcecode: m17n-lib version File versions  Download package

#define MSTRUCT_MALLOC ( p,
err   ) 

Value:

do {                                      \
    if (! ((p) = (void *) malloc (sizeof (*(p)))))    \
      MEMORY_FULL (err);                        \
  } while (0)
short description of MSTRUCT_MALLOC The macro MSTRUCT_MALLOC () allocates memory (by malloc) for an object whose size is determined by the type of P, and sets P to the allocated memory. ERR must be one of enum MErrorCode. If the allocation fails, the macro MEMORY_FULL () is called with argument ERR.

Definition at line 143 of file internal.h.


Generated by  Doxygen 1.6.0   Back to index