Annotation of researchv10no/cmd/cfront/ooptcfront/demo/check.h, revision 1.1.1.1

1.1       root        1: #include <stdio.h>
                      2: 
                      3: #define check(p)  if (!(p))printf("\nerror(%d): test failed at line %d",++error, __LINE__) 
                      4: 
                      5: 
                      6: int error ;
                      7: 
                      8: extern "C" void exit(int) ;
                      9: static char *test_file ;
                     10: 
                     11: void start_test(char *file) 
                     12: {
                     13:   test_file = file ;
                     14:   printf ("\n*Begin Testing %s\n", file) ;
                     15: }
                     16: 
                     17: void end_test() 
                     18: {
                     19:   printf ("\n*End Testing %s", test_file) ;
                     20:   if (error)
                     21:     printf (" *** %d errors ***\n", error) ;
                     22:   else printf (" no errors detected\n") ;
                     23:   
                     24:   exit(error) ;
                     25: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.