fi
dnl check for dump memory usage
-AC_ARG_ENABLE([gc], [AS_HELP_STRING(--disable-dump,disable dump memory (for debugging only!) [[default=yes]])])
+AC_ARG_ENABLE([dump], [AS_HELP_STRING(--disable-dump,disable dump memory (for debugging only!) [[default=yes]])])
AC_MSG_CHECKING(whether dump memory should be used)
if test x"$enable_dump" = "xno"; then
AC_MSG_CHECKING(whether debug code generation should be enabled)
if test x"$enable_debug" = "xno"; then
AC_MSG_RESULT(no)
+ AC_DEFINE([NDEBUG], 1, [disable debug code])
else
AC_MSG_RESULT(yes)
- AC_DEFINE([ENABLE_DEBUG], 1, [enable debug code])
fi
dnl check for statistics
- Calling the class loader
- Running the main method
- $Id: cacao.c 3937 2005-12-10 23:59:04Z twisti $
+ $Id: cacao.c 3940 2005-12-11 01:06:16Z twisti $
*/
{
/********************* Print debug tables ************************/
-#if defined(ENABLE_DEBUG)
+#if !defined(NDEBUG)
if (showmethods)
class_showmethods(mainclass);
Andreas Krall
Christian Thalinger
- $Id: class.c 3888 2005-12-05 22:08:45Z twisti $
+ $Id: class.c 3940 2005-12-11 01:06:16Z twisti $
*/
}
-#if defined(ENABLE_DEBUG)
+#if !defined(NDEBUG)
void class_showconstanti(classinfo *c, int ii)
{
u4 i = ii;
}
}
-#endif /* defined(ENABLE_DEBUG) */
+#endif /* !defined(NDEBUG) */
/*
Edwin Steiner
Christian Thalinger
- $Id: field.c 3856 2005-12-03 12:41:44Z twisti $
+ $Id: field.c 3940 2005-12-11 01:06:16Z twisti $
*/
*******************************************************************************/
-#if defined(ENABLE_DEBUG)
+#if !defined(NDEBUG)
void field_display(fieldinfo *f)
{
printf(" ");
Changes: Christian Thalinger
- $Id: field.h 3857 2005-12-03 12:43:29Z twisti $
+ $Id: field.h 3940 2005-12-11 01:06:16Z twisti $
*/
void field_free(fieldinfo *f);
-#if defined(ENABLE_DEBUG)
+#if !defined(NDEBUG)
void field_display(fieldinfo *f);
#endif
Authors: Carolyn Oates
- $Id: sets.c 3853 2005-12-03 12:34:42Z twisti $
+ $Id: sets.c 3940 2005-12-11 01:06:16Z twisti $
*/
}
-#if defined(ENABLE_DEBUG)
+#if !defined(NDEBUG)
/*------------------------------------------------------------*/
int printSet(classSetNode *s)
{
}
/*------------------------------------------------------------*/
/*void destroy_set */
-#endif /* defined(ENABLE_DEBUG) */
+#endif /* !defined(NDEBUG) */
/*
Andreas Krall
Christian Thalinger
- $Id: utf8.c 3935 2005-12-10 23:55:49Z twisti $
+ $Id: utf8.c 3940 2005-12-11 01:06:16Z twisti $
*/
*******************************************************************************/
-#if defined(ENABLE_DEBUG)
+#if !defined(NDEBUG)
void utf_show(void)
{
/* avg. chainlength = sum of chainlengths / number of chains */
printf("avg. chainlength:%5.2f\n",(float) sum_chainlength / (hashtable_utf.size-chain_count[0]));
}
-#endif /* defined(ENABLE_DEBUG) */
+#endif /* !defined(NDEBUG) */
/*