platform_memory.h 516 B

123456789101112131415161718
  1. /*
  2. * @Author: jiejie
  3. * @Github: https://github.com/jiejieTop
  4. * @Date: 2019-12-14 22:06:35
  5. * @LastEditTime: 2020-04-27 16:27:29
  6. * @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
  7. */
  8. #ifndef _PLATFORM_MEMORY_H_
  9. #define _PLATFORM_MEMORY_H_
  10. #include <stdlib.h>
  11. #include <stdio.h>
  12. #include <stddef.h>
  13. void *platform_memory_alloc(size_t size);
  14. void *platform_memory_calloc(size_t num, size_t size);
  15. void platform_memory_free(void *ptr);
  16. #endif