|
Small, Fast S-Expression Library
|
Wrappers around basic memory allocation/deallocation routines to allow memory usage limiting. Only enabled if SEXP_LIMIT_MEMORY is defined when building the library, otherwise the routines are defined to be the standard malloc/calloc/realloc/free functions. More...
Go to the source code of this file.
Macros | |
| #define | sexp_calloc(count, size) calloc(count,size) |
| #define | sexp_malloc(size) malloc(size) |
| #define | sexp_free(ptr, size) free(ptr) |
| #define | sexp_realloc(ptr, size, oldsize) realloc((ptr),(size)) |
Wrappers around basic memory allocation/deallocation routines to allow memory usage limiting. Only enabled if SEXP_LIMIT_MEMORY is defined when building the library, otherwise the routines are defined to be the standard malloc/calloc/realloc/free functions.
| #define sexp_calloc | ( | count, | |
| size | |||
| ) | calloc(count,size) |
SEXP_LIMIT_MEMORY not defined. This is a macro that maps to calloc().
| #define sexp_free | ( | ptr, | |
| size | |||
| ) | free(ptr) |
SEXP_LIMIT_MEMORY not defined. This is a macro that maps to free().
| #define sexp_malloc | ( | size | ) | malloc(size) |
SEXP_LIMIT_MEMORY not defined. This is a macro that maps to malloc().
| #define sexp_realloc | ( | ptr, | |
| size, | |||
| oldsize | |||
| ) | realloc((ptr),(size)) |
SEXP_LIMIT_MEMORY not defined. This is a macro that maps to realloc().