scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 5dc96d4078a27015fd1277d7779410a0498cbe2b
parent 9051e2b39dc3488b33c454ec375465471f3c3eb6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 18 Jul 2015 11:22:29 +0200

Add __SCC__ macro

This macro communicates to the source file being compiled
that scc is compiling it.

Diffstat:
cc1/cpp.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -47,6 +47,7 @@ icpp(void) strftime(stime, sizeof(stime), "-1#\"%H:%M:%S\"", tm); defmacro("__STDC__")->u.s = "-1#1"; + defmacro("__SCC__")->u.s = "-1#1"; defmacro("__DATE__")->u.s = sdate; defmacro("__TIME__")->u.s = stime; defmacro("__STDC_HOSTED__")->u.s = "-1#1";