2022-11-12 00:31:10 +08:00
|
|
|
/*
|
|
|
|
* @Author: jiejie
|
|
|
|
* @Github: https://github.com/jiejieTop
|
|
|
|
* @Date: 2019-12-14 22:02:07
|
|
|
|
* @LastEditTime: 2020-02-19 20:26:04
|
2022-11-12 13:55:15 +08:00
|
|
|
* @Description: the code belongs to jiejie, please keep the author information
|
|
|
|
* and source code according to the license.
|
2022-11-12 00:31:10 +08:00
|
|
|
*/
|
|
|
|
#include "platform_memory.h"
|
|
|
|
|
2022-11-12 13:55:15 +08:00
|
|
|
void* platform_memory_alloc(size_t size) {
|
|
|
|
return __platform_malloc(size);
|
2022-11-12 00:31:10 +08:00
|
|
|
}
|
|
|
|
|
2022-11-12 13:55:15 +08:00
|
|
|
void* platform_memory_calloc(size_t num, size_t size) {
|
|
|
|
return __platform_calloc(num, size);
|
2022-11-12 00:31:10 +08:00
|
|
|
}
|
|
|
|
|
2022-11-12 13:55:15 +08:00
|
|
|
void platform_memory_free(void* ptr) {
|
|
|
|
__platform_free(ptr);
|
2022-11-12 00:31:10 +08:00
|
|
|
}
|