Basic debug library

Dependents:   modem_ref_helper_for_v5_3_217 modem_ref_helper

Revision:
12:d1e9df18d18c
Parent:
10:0e6e54fb08c0
--- a/WizziDebug.h	Fri Sep 24 12:36:20 2021 +0000
+++ b/WizziDebug.h	Fri Oct 01 08:46:24 2021 +0000
@@ -91,9 +91,9 @@
 
 
 #ifdef _TRACE_MALLOC_
-    #define MALLOC(s)       dbg_malloc((s),__FUNCTION__,__LINE__)
-    #define REALLOC(p,s)    dbg_realloc((p),(s),__FUNCTION__,__LINE__)
-    #define FREE(p)         dbg_free((p),__FUNCTION__,__LINE__)
+    #define MALLOC(s)       dbg_malloc((s),__FUNCTION__,__LINE__);FLUSH();
+    #define REALLOC(p,s)    dbg_realloc((p),(s),__FUNCTION__,__LINE__);FLUSH();
+    #define FREE(p)         dbg_free((p),__FUNCTION__,__LINE__);FLUSH();
 #else
     #define MALLOC(s)       malloc(s)
     #define REALLOC(p,s)    realloc(p,s)