aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index a46d5c7..c55eafa 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -2936,6 +2936,19 @@ do_unassert (pfile, keyword)
return 1;
}
+/* Process STR as if it appeared as the body of an #unassert. */
+void
+cpp_unassert (pfile, str)
+ cpp_reader *pfile;
+ unsigned char *str;
+{
+ if (cpp_push_buffer (pfile, str, strlen (str)) != NULL)
+ {
+ do_assert (pfile, NULL);
+ cpp_pop_buffer (pfile);
+ }
+}
+
int
cpp_read_check_assertion (pfile)
cpp_reader *pfile;