about summary refs log tree commit diff
path: root/third_party/lisp/trivial-backtrace/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
commitfdcfd59aa4426f1d4351b34a69829320084bda10 (patch)
treef2edeef16d32d18d45b7ff2ad3aba59a18f3ac8a /third_party/lisp/trivial-backtrace/dev/fallback.lisp
parent00902daa000ab6fe5299e2b413ac27fb157de3bd (diff)
parentcc026178a94f94fa9c79cedc66cbaf5ab78c21c1 (diff)
Merge commit 'cc026178a94f94fa9c79cedc66cbaf5ab78c21c1' as 'third_party/lisp/trivial-backtrace' r/392
Diffstat (limited to 'third_party/lisp/trivial-backtrace/dev/fallback.lisp')
-rw-r--r--third_party/lisp/trivial-backtrace/dev/fallback.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/lisp/trivial-backtrace/dev/fallback.lisp b/third_party/lisp/trivial-backtrace/dev/fallback.lisp
new file mode 100644
index 000000000000..40a5219824e5
--- /dev/null
+++ b/third_party/lisp/trivial-backtrace/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.~%"))))