debugger build okay
[fw/sdcc] / debugger / mcs51 / sdcdb.h
index 1077cbec7b0dbb2ae666ae14bdfc770a9fc11733..9d15567828852a4999ec8c495403c31df588e925 100644 (file)
@@ -67,7 +67,13 @@ typedef short bool;
             exit (1);                                                \
          }
 #endif
-
+#ifndef ALLOC_ATOMIC
+#define ALLOC_ATOMIC(x,sz)   if (!(x = GC_malloc_atomic(sz)))   \
+         {                                               \
+            fprintf(stderr,"sdcdb: out of memory\n"); \
+            exit (1);                                    \
+         }
+#endif
 /* generalpurpose stack related macros */
 #define  STACK_DCL(stack,type,size)                   \
          typedef  type  t_##stack   ;                 \