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:
parent
56e3553c56
commit
d1e964a84a
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user