SQLITE_NOTICE(283): recovered 5 frames from WAL file /data/mtt.fossil-wal
File mttroot/mtt/lib/rep/sfun_rep/sfun_debug.h artifact 484e8ce3d6 part of check-in 8ae6d2d4de
#ifndef HAVE_SFUN_DEBUG_H #define HAVE_SFUN_DEBUG_H #if defined DEBUG && defined __GNUC__ #include <stdio.h> #define PRINT_ENTER fprintf (stderr, "debug> Entered '%s'\n", __FUNCTION__); #define PRINT_LEAVE fprintf (stderr, "debug> Leaving '%s'\n", __FUNCTION__); #elif defined DEBUG && ! defined __GNUC__ #include <stdio.h> #define PRINT_ENTER fprintf (stderr, "debug> Entered a function\n"); #define PRINT_LEAVE fprintf (stderr, "debug> Leaving a function\n"); #elif ! defined DEBUG #define PRINT_ENTER #define PRINT_LEAVE #else #error "Momentary lapse of logic : unreachable statement reached" #endif #endif /* HAVE_SFUN_DEBUG_H */