chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/classes.lisp, src/class-layout-proto.lisp: Docstring fixes.
[sod]
/
src
/
module-impl.lisp
diff --git
a/src/module-impl.lisp
b/src/module-impl.lisp
index 9e74b2703f7cbbe908493485cb3f5d92249c065f..fe6b545785778b0a8d26c1e14d1810cb9df75b9a 100644
(file)
--- a/
src/module-impl.lisp
+++ b/
src/module-impl.lisp
@@
-167,7
+167,8
@@
(defun output-c-excursion (stream location thunk)
(line (file-location-line location))
(filename (file-location-filename location)))
(cond (line
(line (file-location-line location))
(filename (file-location-filename location)))
(cond (line
- (format stream "~&#line ~D~@[ ~S~]~%" line filename)
+ (when (typep stream 'position-aware-stream)
+ (format stream "~&#line ~D~@[ ~S~]~%" line filename))
(funcall thunk)
(when (typep stream 'position-aware-stream)
(fresh-line stream)
(funcall thunk)
(when (typep stream 'position-aware-stream)
(fresh-line stream)