From: <sp...@us...> - 2004-02-26 20:17:16
|
Update of /cvsroot/rtk/rtk/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13417/test Modified Files: test.h Log Message: Changed the output of the tests Index: test.h =================================================================== RCS file: /cvsroot/rtk/rtk/test/test.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** test.h 22 Feb 2004 11:50:15 -0000 1.4 --- test.h 26 Feb 2004 20:01:16 -0000 1.5 *************** *** 9,14 **** #include <rtk/rchar.h> ! #define STEP(x) rprintf(_R("$ %s\n"), _R(#x));x ! #define OUT(msg,val) rprintf(_R("> ") _R(msg) _R("\n"), val) #define TITLE(x) \ --- 9,14 ---- #include <rtk/rchar.h> ! #define STEP(x) IncStep();rprintf(_R("$ %s\n"), _R(#x));x ! #define OUT(msg,val) IncStep();rprintf(_R("> ") _R(msg) _R("\n"), val) #define TITLE(x) \ *************** *** 19,21 **** --- 19,30 ---- using namespace Rtk; + static int step_counter = 0; + + static void IncStep() + { + rprintf(_R("[%03d] "), step_counter++); + } + + #define PRINTF(fmt,rest...) rprintf(_R(" ") fmt, #rest) + #endif |