1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-06 22:31:13 -07:00

Set IGC_DEBUG with --enable-checking=igc_debug

This commit is contained in:
Gerd Möllmann 2024-06-18 08:15:44 +02:00
parent 41e822c2b5
commit 86ff6b62d7
2 changed files with 6 additions and 4 deletions

View file

@ -699,7 +699,7 @@ AC_ARG_ENABLE([checking],
enable only specific categories of checks.
Categories are: all,yes,no.
Flags are: stringbytes, stringoverrun, stringfreelist,
igc_check_fwd,
igc_check_fwd, igc_debug,
structs, glyphs])],
[ac_checking_flags="${enableval}"],[])
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
@ -729,6 +729,7 @@ do
glyphs) ac_glyphs_debug=1 ;;
# Very special case, so don't include it in all.
igc_check_fwd) ac_igc_check_fwd=1 ;;
igc_debug) ac_igc_debug=1 ;;
*) AC_MSG_ERROR([uuu unknown check category $check]) ;;
esac
done
@ -780,6 +781,10 @@ AS_IF([test "$with_android" = no || test -n "$XCONFIGURE"],[
AC_DEFINE([IGC_CHECK_FWD], [1],
[Define this to enable igc forwarding check code.])
fi
if test x$ac_igc_debug != x ; then
AC_DEFINE([IGC_DEBUG], [1],
[Define this to enable igc assertions.])
fi
],[AS_IF([test "x$ac_enable_checking" != x],
[android_enable_checking=yes
export android_enable_checking])])

View file

@ -61,9 +61,6 @@ enum igc_obj_type
#ifdef HAVE_MPS
/* Assertions. */
# define IGC_DEBUG 1
void igc_break (void);
void init_igc (void);
void syms_of_igc (void);