Files
app-ethereum/src_common/mem_utils.h

17 lines
398 B
C
Raw Normal View History

#ifndef MEM_UTILS_H_
#define MEM_UTILS_H_
#ifdef HAVE_DYN_MEM_ALLOC
#include <stdint.h>
#include <stdbool.h>
2022-07-19 11:49:18 +02:00
#define MEM_ALLOC_AND_ALIGN_TYPE(type) mem_alloc_and_align(sizeof(type), __alignof__(type))
2022-07-19 11:49:18 +02:00
char *mem_alloc_and_format_uint(uint32_t value, uint8_t *const written_chars);
void *mem_alloc_and_align(size_t size, size_t alignment);
2022-07-19 11:49:18 +02:00
#endif // HAVE_DYN_MEM_ALLOC
2022-07-19 11:49:18 +02:00
#endif // MEM_UTILS_H_