From: johanknol Date: Wed, 30 May 2001 10:42:49 +0000 (+0000) Subject: comment out preprocessor directives in inline asm X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9050c05f980b3f9d56ee80936b0bd4848e877ba1;p=fw%2Fsdcc 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 --- 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; } }