Sha256: 93bdb690a7a8f73dbdec3d2f908e2854bc703664d68fa7253f6a1b8a93c59e7d
Contents?: true
Size: 851 Bytes
Versions: 4
Compression:
Stored size: 851 Bytes
Contents
#ifndef WDM_MEMORY_H #define WDM_MEMORY_H #ifdef __cplusplus extern "C" { #endif // __cplusplus // --------------------------------------------------------- // Prototypes // --------------------------------------------------------- void * wdm_memory_malloc (size_t); void * wdm_memory_realloc (void *, size_t); // --------------------------------------------------------- // Macros // --------------------------------------------------------- #define WDM_ALLOC_N(type,n) ((type*)wdm_memory_malloc((n) * sizeof(type))) #define WDM_ALLOC(type) ((type*)wdm_memory_malloc(sizeof(type))) #define WDM_REALLOC_N(var,type,n) ((var)=(type*)wdm_memory_realloc((void*)(var), (n) * sizeof(type))) // --------------------------------------------------------- #ifdef __cplusplus } #endif // __cplusplus #endif // WDM_MEMORY_H
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wdm-0.0.3 | ext/wdm/memory.h |
wdm-0.0.2-x86-mingw32 | ext/wdm/memory.h |
wdm-0.0.2-mingw32 | ext/wdm/memory.h |
wdm-0.0.1 | ext/wdm/memory.h |