platform_memory.h 589 B

123456789101112131415161718192021222324252627
  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
  7. * information and source code according to the license.
  8. */
  9. #ifndef _PLATFORM_MEMORY_H_
  10. #define _PLATFORM_MEMORY_H_
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. #include "PikaObj.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. void* platform_memory_alloc(size_t size);
  18. void* platform_memory_calloc(size_t num, size_t size);
  19. void platform_memory_free(void* ptr);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif