if-system.red 546 B

123456789101112131415161718192021
  1. %
  2. % IF-SYSTEM.RED - Conditional compilation for system-dependent code
  3. %
  4. % Author: Eric Benson
  5. % Symbolic Computation Group
  6. % Computer Science Dept.
  7. % University of Utah
  8. % Date: 10 March 1982
  9. % Copyright (c) 1982 University of Utah
  10. %
  11. fluid '(system_list!*);
  12. macro procedure if_system U;
  13. do_if_system(cadr U, caddr U, if cdddr U then cadddr U else NIL);
  14. expr procedure do_if_system(system_name, true_case, false_case);
  15. if system_name memq system_list!* then true_case else false_case;
  16. END;