34 while ( *p != 0 ) { ++p; }
35 while ( *p !=
'/' && *p !=
'\\' && *p !=
':' ) {
36 if ( p == str ) {
return str; }
49 template <
class T>
inline
50 void testThis(
bool cond,
const T* label,
const T* fname,
long lineno );
53 bool cond,
const char* label,
const char* fname,
long lineno
56 std::cout <<
"=\\_fail: " << label <<
" \n=/ (";
64 int cond,
const char* label,
const char* fname,
long lineno
67 printf(
"%s%s%s",
"=\\_fail: " , label ,
" \n=/ (" );
75 #define assertTrue(x) ((void)0)
76 #define assertFalse(x) ((void)0)
79 #define assertTrue(cond) testThis(!!(cond), #cond, __FILE__,__LINE__ )
81 #define assertFalse(cond) testThis( !(cond),"!(" #cond ")", __FILE__,__LINE__ )
void testThis< char >(bool cond, const char *label, const char *fname, long lineno)
void testThis(bool cond, const T *label, const T *fname, long lineno)
static const char * remove_dir_name(const char *str)
"C:/DIR/SubDir/file_name.ext" ==> "file_name.ext"