From 9050c05f980b3f9d56ee80936b0bd4848e877ba1 Mon Sep 17 00:00:00 2001 From: johanknol Date: Wed, 30 May 2001 10:42:49 +0000 Subject: [PATCH] comment out preprocessor directives in inline asm git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@861 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCpeeph.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/SDCCpeeph.c b/src/SDCCpeeph.c index 37b8634b..0ae38500 100644 --- a/src/SDCCpeeph.c +++ b/src/SDCCpeeph.c @@ -272,10 +272,15 @@ printLine (lineNode * head, FILE * of) /* don't indent comments & labels */ if (head->line && (*head->line == ';' || - head->line[strlen (head->line) - 1] == ':')) + head->line[strlen (head->line) - 1] == ':')) { fprintf (of, "%s\n", head->line); - else + } else { + if (head->isInline && *head->line=='#') { + // comment out preprocessor directives in inline asm + fprintf (of, ";"); + } fprintf (of, "\t%s\n", head->line); + } head = head->next; } } -- 2.30.2