platform_memory.h 585 B

1234567891011121314151617181920212223242526
  1. /*
  2. * @Author: jiejie
  3. * @Github: https://github.com/jiejieTop
  4. * @Date: 2019-12-14 22:06:35
  5. * @LastEditTime: 2020-10-17 14:17:24
  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. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. void *platform_memory_alloc(size_t size);
  17. void *platform_memory_calloc(size_t num, size_t size);
  18. void platform_memory_free(void *ptr);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif