platform_memory.c 539 B

123456789101112131415161718192021
  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
  7. * information and source code according to the license.
  8. */
  9. #include "platform_memory.h"
  10. void* platform_memory_alloc(size_t size) {
  11. return __platform_malloc(size);
  12. }
  13. void* platform_memory_calloc(size_t num, size_t size) {
  14. return __platform_calloc(num, size);
  15. }
  16. void platform_memory_free(void* ptr) {
  17. __platform_free(ptr);
  18. }