1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-26 12:49:21 +00:00

Recoded #pragma parsing to allow unknown pragmas (as long as they follow the parenthesized syntax). Closes #324

This commit is contained in:
jespergravgaard 2020-08-26 02:14:27 +02:00
parent 56e3553c56
commit d1e964a84a
2 changed files with 1 additions and 4 deletions

View File

@ -258,7 +258,7 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor<Objec
this.pragmaConstructorFors.add(ctx);
return null;
default:
program.getLog().append("Warning! Unknown #pragma " + pragmaName + "\n" + new StatementSource(ctx).toString());
program.getLog().append("Warning! Unknown #pragma " + pragmaName);
}
return null;

View File

@ -1,7 +1,4 @@
Warning! Unknown #pragma unknown
File /Users/jespergravgaard/c64/kickc/src/test/kc/pragma-unknown.c
Line 3
#pragma unknown(x)
CONTROL FLOW GRAPH SSA