Sha256: 525785de095faaf2cc3fa5e0b136171e20f0db2e95a02786390887fd3a5ae4b5

Contents?: true

Size: 846 Bytes

Versions: 3

Compression:

Stored size: 846 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

3 entries across 3 versions & 3 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/wdm-0.1.0/ext/wdm/memory.h
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/wdm-0.1.0/ext/wdm/memory.h
wdm-0.1.0 ext/wdm/memory.h