DiagHelper.cp 797 B

12345678910111213141516171819202122232425262728293031
  1. (* ============================================================ *)
  2. (* *)
  3. (* Gardens Point Component Pascal Library Module. *)
  4. (* Copyright (c) K John Gough 1999, 2000 *)
  5. (* Created : 26 December 1999 kjg *)
  6. (* *)
  7. (* ============================================================ *)
  8. MODULE DiagHelper;
  9. IMPORT
  10. GPCPcopyright,
  11. RTS,
  12. Console;
  13. PROCEDURE Indent*(j : INTEGER);
  14. VAR i : INTEGER;
  15. BEGIN
  16. Console.WriteString("D:");
  17. FOR i := 0 TO j-1 DO Console.Write(" ") END;
  18. END Indent;
  19. PROCEDURE Class*(IN str : ARRAY OF CHAR; o : ANYPTR; i : INTEGER);
  20. BEGIN
  21. Indent(i);
  22. Console.WriteString(str);
  23. Console.WriteString(" RTSclass ");
  24. RTS.ClassMarker(o);
  25. Console.WriteLn;
  26. END Class;
  27. END DiagHelper.