mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d-common: Move vkd3d_array_reserve() from libvkd3d.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user