Now wraps the printf calls in a macro. SDK-like

This commit is contained in:
Alexandre Paillier
2022-05-02 17:11:28 +02:00
parent 09697f718a
commit 6c14bfa476
5 changed files with 31 additions and 36 deletions

View File

@@ -1,8 +1,6 @@
#include <stdint.h>
#ifdef DEBUG
#include <stdio.h>
#endif
#include "mem.h"
#include "shared_context.h"
#define SIZE_MEM_BUFFER 8192
@@ -46,7 +44,7 @@ void *mem_alloc(size_t size)
if ((mem_idx + size) > SIZE_MEM_BUFFER) // Buffer exceeded
{
#ifdef DEBUG
printf("Memory exhausted!\n");
PRINTF("Memory exhausted!\n");
#endif
return NULL;
}