SU2
Macros
gk_mkmemory.h File Reference

Templates for memory allocation routines. More...

Go to the source code of this file.

Macros

#define GK_MKALLOC(PRFX, TYPE)
 
#define GK_MKALLOC_PROTO(PRFX, TYPE)
 

Detailed Description

Templates for memory allocation routines.

Date
Started 3/29/07
Author
George
Version
$Id: gk_mkmemory.h 10711 2011-08-31 22:23:04Z karypis $ 

Macro Definition Documentation

§ GK_MKALLOC_PROTO

#define GK_MKALLOC_PROTO (   PRFX,
  TYPE 
)
Value:
TYPE *PRFX ## malloc(size_t n, char *msg);\
TYPE *PRFX ## realloc(TYPE *ptr, size_t n, char *msg);\
TYPE *PRFX ## smalloc(size_t n, TYPE ival, char *msg);\
TYPE *PRFX ## set(size_t n, TYPE val, TYPE *x);\
TYPE *PRFX ## copy(size_t n, TYPE *a, TYPE *b);\
TYPE **PRFX ## AllocMatrix(size_t ndim1, size_t ndim2, TYPE value, char *errmsg);\
void PRFX ## FreeMatrix(TYPE ***r_matrix, size_t ndim1, size_t ndim2);\
void PRFX ## SetMatrix(TYPE **matrix, size_t ndim1, size_t ndim2, TYPE value);\