next up previous contents
Next: Linked lists Up: Miscellaneous definitions Previous: Types with specific bit   Contents

Debugging tools

The macro gan_assert() provides a mechanism similar to assert() except that it allows a user-defined message to be printed when the test fails. When NDEBUG is #define'd gan_assert() will have no effect. The global variable gan_debug determines whether to print certain debugging messages. It is only available when NDEBUG is not defined.