aboutsummaryrefslogtreecommitdiff
path: root/module/c/cpp-types.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/c/cpp-types.scm')
-rw-r--r--module/c/cpp-types.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/c/cpp-types.scm b/module/c/cpp-types.scm
index 6dad061e..bf51d009 100644
--- a/module/c/cpp-types.scm
+++ b/module/c/cpp-types.scm
@@ -86,7 +86,8 @@
;; NOTE q-string tokens are never produced by the lexer,
;; since they instead are treated as regular strings
(define (q-string-token? token)
- (string-token? token))
+ (cond ((string-token? token)
+ (lambda (a . _) a) => (lambda (_ . a) (apply values a)))))
(define (make-string-literal parts)
(typecheck parts (list-of (or string? list?)))