Skip to content

Update mesh_mem_stdlib.c #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mesh/core/src/mesh_mem_stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@
*/

#include "mesh_mem.h"

#include "utils.h"
#include <stdlib.h>

void mesh_mem_init(void)
__WEAK void mesh_mem_init(void)
{
}

void * mesh_mem_alloc(size_t size)
__WEAK void * mesh_mem_alloc(size_t size)
{
return malloc(size);
}

void mesh_mem_free(void * ptr)
__WEAK void mesh_mem_free(void * ptr)
{
free(ptr);
}

void * mesh_mem_calloc(size_t nmemb, size_t size)
__WEAK void * mesh_mem_calloc(size_t nmemb, size_t size)
{
return calloc(nmemb, size);
}