mini-error-errorset.red 398 B

123456789101112131415161718192021
  1. % MINI-ERROR-ERRORSET
  2. on syslisp;
  3. syslsp procedure ErrorHeader;
  4. Prin2String "*** ERROR *** ";
  5. syslsp procedure Error s;
  6. <<ErrorHeader();
  7. ErrorTrailer s>>;
  8. syslsp procedure ErrorTrailer s;
  9. <<If pairp s then Prin2L s else Prin2T s;
  10. Quit;>>;
  11. syslsp procedure Prin2L s;
  12. % Should be in PrintF?
  13. <<While Pairp s do <<prin2 car s; s:=cdr s; prin2 " ">>;
  14. Terpri()>>;
  15. off syslisp;
  16. End;