Sha256: 7d6d30485c0e78f520c18f609a8e195c2a913d0293f943dc2b14fa34ad92091e
Contents?: true
Size: 416 Bytes
Versions: 3
Compression:
Stored size: 416 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
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
vagrant-cloudstack-1.1.0 | vendor/bundle/gems/wdm-0.1.0/ext/wdm/memory.c |
vagrant-tiktalik-0.0.3 | vendor/bundle/ruby/2.0.0/gems/wdm-0.1.0/ext/wdm/memory.c |
wdm-0.1.0 | ext/wdm/memory.c |