FLINT3.7.0-dev

GR_DEBUG_WRAP, GR_DEBUG_VERBOSE, GR_DEBUG_CHECK_ALWAYS_ABLE, GR_DEBUG_TIMING

Synopsis#include <flint/gr.h>
GR_DEBUG_WRAPsource
GR_DEBUG_VERBOSEsource
GR_DEBUG_CHECK_ALWAYS_ABLEsource
GR_DEBUG_TIMINGsource

Flags for gr_ctx_init_debug. GR_DEBUG_WRAP stores each element in a box with a pointer to its context, which detects elements used with the wrong context and can reveal bugs hidden when elements are stored shallowly. GR_DEBUG_VERBOSE prints every operation with its inputs, output and status. GR_DEBUG_CHECK_ALWAYS_ABLE throws an exception when a wrapped method returns GR_UNABLE or T_UNKNOWN. GR_DEBUG_TIMING prints the time taken by each operation.

Cite this page

The FLINT team, “GR_DEBUG_WRAP, GR_DEBUG_VERBOSE, GR_DEBUG_CHECK_ALWAYS_ABLE, GR_DEBUG_TIMING (gr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_domains/GR_DEBUG_WRAP.html (generated 2026-10-20).