meta,
C++
/* Module >> traceco.h
*****************************************************************************
Trace Configuration: Define or undefine _t and/or LB_tr
*/
// #define unlink
#define private protected
// Trace Indicators tr_... (must be given an integer value here):
// #define no_trace__
#define tr_ if ( traceMe ) printf(
#define tr_files showComm
#define tr_rBuffer 0
// #define ___ if ( call_nr > 2547900 )
// #define ___ { okAt = -10000 ; __ _1( call_nr ) fflush( stdout ); }
// end trace indicators // Say _x( V ) to trace a variable V unconditionally
static FILE * X = stdout ;
static int atLB ;
static char * this_exe ;
static char * checkPoint ;
#define _c printf( "\n %s", checkPoint );
#define checkHere checkPoint = x ; if ( errno ) fErr
#define TRf(x) if At( x, "ERD_Ja" )
// #define TRf(x)
#undef LB_
#define LB_(x)
{
TRf(x) printf( "\n -> %s", x ); inproc = x ;
// #define LB_(x) { inproc = x ;
// #define LB_(x) {
#define _z printf( "\n--> %i %s\n", __LINE__, __FILE__ );
// #define LB_tr 1
#ifdef LB_tr
#define atL printf( "\n.. %i" , __LINE__ );
#define atLF printf( "\n.. %i %s", __LINE__, __FILE__ );
#undef LB_
#define LB_(x)
{
if ( ++atLB > LB_tr && atLB < LB_tr + 1000 ) \
printf( "\n.. %i %s, %s", __LINE__, __FILE__, x ); \
if ( errno ) printf( "\nerrno = %i", errno ); ok
#define _ if ( ++atLB > LB_tr ) printf( "\n-- %i - %s", \
__LINE__, __FILE__ );
#define __ if ( okAt < 0 ) printf( "\n.. %i", __LINE__ );
#define LE_ if ( okAt < 0 ) printf( "\n.. end of %s", checkPoint );
}
#define _t if ( atLB > LB_tr ) printf( \
"\n_t %i %s, errno %i\n", __LINE__, __FILE__, errno );
#else
#undef __
#define __ if ( okAt < 0 ) printf( "\n.. %i.%s", __LINE__, __FILE__ );
#endif
// - Hier '#define stderr stdout' zu schreiben hat Fehler zur Folge.
#endif