aboutsummaryrefslogtreecommitdiff
path: root/module/c/preprocessor2.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/c/preprocessor2.scm')
-rw-r--r--module/c/preprocessor2.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/c/preprocessor2.scm b/module/c/preprocessor2.scm
index d7bf3b64..ee6f2d9f 100644
--- a/module/c/preprocessor2.scm
+++ b/module/c/preprocessor2.scm
@@ -642,7 +642,8 @@
((define) resolve-define)
((undef) (lambda (env body) (remove-identifier env (identifier-token? (car body)))))
((line) handle-line-directive)
- ((error) (lambda (_ body) (throw 'cpp-error body)))
+ ((error) (lambda (_ tokens)
+ (throw 'cpp-error-directive (unlex tokens))))
((pragma) handle-pragma)
(else (err "Unknown preprocessing directive: ~s"
(list line-tokens))))))