1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-21 10:03:00 +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:
Nick Briggs 2020-08-11 17:33:53 -07:00
parent 055a9522f8
commit 8c13508c07

View File

@ -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)); \
} \
}