Next: , Previous: Main project header, Up: VRRLIB



4.2 Logging and debugging

This stuff is implemented in the lib/log.c module and by default prototyped in lib/lib.h. There are two levels of debugging. Global debugging is turned on if there is the macro DEBUG defined. The local debugging should be turned on and off for every module separately by defining the macro LOCAL_DEBUG.

These functions should be used for debugging and informative printing purposes, the format is the same as in the printf function.

The wide usage of ASSERT macro is recommended.