9 /* hack for pic32 gcc */
14 static volatile int live_check_disable=0;
16 void live_check(const char *file,int line)
18 static volatile char *top=NULL,*top_printed=NULL;
19 static volatile size_t largest=0,largest_printed=0;
24 if (live_check_disable<=0 && top!=top_printed) {
25 printf("live_check [%s:%d]: new top=0x%08lX\n",file,line,(long)top);
29 if (largest < top-&mark)
31 if (live_check_disable<=0 && largest!=largest_printed) {
32 printf("live_check [%s:%d]: largest=%ld\n",file,line,(long)largest);
34 largest_printed=largest;
36 if (largest >= 12000) {
37 if (live_check_disable<=0)
38 puts("live_check - aborting!");
43 void live_disable(int how)
45 live_check_disable+=how;
48 #endif /* STACKCHECK */