utils.lisp 495 B

12345678910
  1. ;;; -*- Mode: Lisp; show-trailing-whitespace: t; Base: 10; indent-tabs: nil; Syntax: ANSI-Common-Lisp; Package: UTILS; -*-
  2. ;;; Copyright (c) 2013, Mark VandenBrink. All rights reserved.
  3. (in-package #:utils)
  4. (defun warn-user (format-string &rest args)
  5. "print a warning error to *ERROR-OUTPUT* and continue"
  6. ;; COMPLETELY UNPORTABLE!!!
  7. (format *error-output* "~&~&WARNING in ~a:: " (ccl::%last-fn-on-stack 1))
  8. (format *error-output* format-string args)
  9. (format *error-output* "~%~%"))