about summary refs log tree commit diff
path: root/dev/fallback.lisp
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-01-17T17·53+0000
committerVincent Ambo <tazjin@google.com>2020-01-17T17·53+0000
commitcc026178a94f94fa9c79cedc66cbaf5ab78c21c1 (patch)
treedbcf1a761b5b58bcc3159d05bdb32f3167a63d90 /dev/fallback.lisp
Squashed 'third_party/lisp/trivial-backtrace/' content from commit 43ef7d9
git-subtree-dir: third_party/lisp/trivial-backtrace
git-subtree-split: 43ef7d947f4b4de767d0f91f28b50d9c03ad29d6
Diffstat (limited to 'dev/fallback.lisp')
-rw-r--r--dev/fallback.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev/fallback.lisp b/dev/fallback.lisp
new file mode 100644
index 000000000000..40a5219824e5
--- /dev/null
+++ b/dev/fallback.lisp
@@ -0,0 +1,10 @@
+(in-package #:trivial-backtrace)
+
+(eval-when (:compile-toplevel :load-toplevel :execute)
+  (unless (fboundp 'map-backtrace)
+    (defun map-backtrace (func)
+      (declare (ignore func))))
+
+  (unless (fboundp 'print-backtrace-to-stream)
+    (defun print-backtrace-to-stream (stream)
+      (format stream "~&backtrace output unavailable.~%"))))