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.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/module/c/cpp-types.scm b/module/c/cpp-types.scm
index 1a7387f5..e5e73d32 100644
--- a/module/c/cpp-types.scm
+++ b/module/c/cpp-types.scm
@@ -52,3 +52,16 @@
(match (lexeme-body token)
(`(string-literal ,x) x)
(_ #f))))
+
+
+(define (h-string-token? token)
+ (and (preprocessing-token? token)
+ (match (lexeme-body token)
+ (`(h-string ,x) x)
+ (_ #f))))
+
+(define (q-string-token? token)
+ (and (preprocessing-token? token)
+ (match (lexeme-body token)
+ (`(q-string ,x) x)
+ (_ #f))))