home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / M2V11-2.LHA / modula / dice / dice.lha / dynamic / dynamic.lha / test / hdebug.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-29  |  359 b   |  28 lines

  1.  
  2. /*
  3.  *  HDEBUG.C
  4.  *
  5.  *  HDEBUG level
  6.  */
  7.  
  8. main(ac, av)
  9. int ac;
  10. char *av[];
  11. {
  12.     long debug;
  13.  
  14.     if (ac == 1) {
  15.     puts("HDEBUG <level>");
  16.     puts("0 to turn off debugging.  While on, this CLI must remain");
  17.     puts("open.");
  18.     exit(1);
  19.     }
  20.     debug = atoi(av[1]);
  21.     if (debug)
  22.     SetHyperDebug(Output(), debug);
  23.     else
  24.     SetHyperDebug(0, 0);
  25.     return(0);
  26. }
  27.  
  28.