Sha256: d04fad5ec33776482b143907f2ba0e5259d52bd0295c55d7cf4c2e975c9626e4
Contents?: true
Size: 418 Bytes
Versions: 4
Compression:
Stored size: 418 Bytes
Contents
#include "wdm.h" #include "memory.h" void * wdm_memory_malloc (size_t size) { void *memory = malloc(size); if ( memory == NULL ) { rb_fatal("failed to allocate memory"); } return memory; } void * wdm_memory_realloc (void *ptr, size_t size) { void *memory = realloc(ptr, size); if ( memory == NULL ) { rb_fatal("failed to re-allocate memory"); } return memory; }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wdm-0.0.3 | ext/wdm/memory.c |
wdm-0.0.2-x86-mingw32 | ext/wdm/memory.c |
wdm-0.0.2-mingw32 | ext/wdm/memory.c |
wdm-0.0.1 | ext/wdm/memory.c |