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:
Julien Fischer
2014-04-22 10:44:02 +10:00
parent 41e75fcc78
commit a9fbc1e528
2 changed files with 4 additions and 1 deletions

View File

@@ -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,