Introduce G_ENABLE_CONSISTENCY_CHECKS

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 9 September 2015 05:32 UTC

Use a separate G_ENABLE_CONSISTENCY_CHECKS define to guard internal consistency checks that are applied unconditionally if they are enabled, such as the widget invariants checking. Interactive debug spew that can be triggered at runtime with the GTK_DEBUG environment variable is still guarded by the G_ENABLE_DEBUG define.

The mapping from enable-debug levels to defines is as follows:

yes: G_ENABLE_DEBUG G_ENABLE_CONSISTENCY_CHECKS minimum: G_ENABLE_DEBUG G_DISABLE_CAST_CHECKS no: G_DISABLE_CAST_CHECKS G_DISABLE_ASSERT G_DISABLE_CHECKS

f114d9c Introduce G_ENABLE_CONSISTENCY_CHECKS
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: git.gnome.org


  • Share