mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-15 13:55:07 +00:00
Only define MR_nondetstack_inclusion_check in low-level C grades.
runtime/mercury_overflow.c: As above: compiling this function in high-level C grades will fail since it refers to fields of the MR_Context structure that do not exist in those grades.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "mercury_debug.h" /* for MR_print_zone() etc */
|
||||
#include "mercury_misc.h" /* for MR_fatal_error() */
|
||||
|
||||
#if !defined(MR_HIGHLEVEL_CODE)
|
||||
void
|
||||
MR_nondetstack_inclusion_check(MR_Word *maxfr,
|
||||
const char *error, const char *where)
|
||||
@@ -43,6 +44,7 @@ MR_nondetstack_inclusion_check(MR_Word *maxfr,
|
||||
prev_zones = prev_zones->MR_zones_tail;
|
||||
}
|
||||
}
|
||||
#endif /* !MR_HIGHLEVEL_CODE */
|
||||
|
||||
void
|
||||
MR_fatal_zone_error(MR_OverflowZone ptr_kind,
|
||||
|
||||
Reference in New Issue
Block a user