mirror of
https://github.com/Interlisp/maiko.git
synced 2026-03-10 12:28:51 +00:00
Debug checks use printf() and therefore require <stdio.h> so include it if debug checks are on.
modified: inc/stack.h
This commit is contained in:
@@ -390,6 +390,8 @@ typedef struct stackp
|
||||
|
||||
#ifdef STACKCHECK
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define S_CHECK(condition, msg) \
|
||||
{ \
|
||||
if(!(condition)) \
|
||||
@@ -403,7 +405,7 @@ typedef struct stackp
|
||||
{ \
|
||||
if(!(condition)) \
|
||||
{ \
|
||||
printf("\n\nStack check failed at 0x%x: %s.\n\n", (scanptr), (msg)); \
|
||||
printf("\n\nStack check failed at %p: %s.\n\n", (scanptr), (msg)); \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user