libs/vkd3d-common: Move vkd3d_array_reserve() from libvkd3d.

This commit is contained in:
Józef Kucia
2017-06-19 18:05:53 +02:00
parent 465fe54a9b
commit eff8428c71
5 changed files with 55 additions and 32 deletions

View File

@@ -20,6 +20,8 @@
#define __VKD3D_MEMORY_H
#include <assert.h>
#include <stdbool.h>
#include "vkd3d_debug.h"
static inline void *vkd3d_malloc(size_t size)
@@ -51,4 +53,7 @@ static inline void vkd3d_free(void *ptr)
free(ptr);
}
bool vkd3d_array_reserve(void **elements, size_t *capacity,
size_t element_count, size_t element_size) DECLSPEC_HIDDEN;
#endif /* __VKD3D_MEMORY_H */