platform_memory.c 506 B

1234567891011121314151617181920212223242526
  1. /*
  2. * @Author: jiejie
  3. * @Github: https://github.com/jiejieTop
  4. * @Date: 2019-12-14 22:02:07
  5. * @LastEditTime: 2020-02-19 20:26:04
  6. * @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
  7. */
  8. #include "platform_memory.h"
  9. void *platform_memory_alloc(size_t size)
  10. {
  11. return malloc(size);
  12. }
  13. void *platform_memory_calloc(size_t num, size_t size)
  14. {
  15. return calloc(num, size);
  16. }
  17. void platform_memory_free(void *ptr)
  18. {
  19. free(ptr);
  20. }