Closed Blady-Com closed 4 years ago
There is support for user-defined warning messages, via attribute Warning_Message:
for Warning_Message use "Hi there.";
will display:
p.gpr:1:09: warning: Hi there.
For now we are not planning to extend this functionality.
Hello,
In order to facilitate GPR projects tuning (as they may become very complex), GPRBuild might support raise declarations as:
raise_declaration ::= 'raise' 'Info' | 'Warning' | 'Error' ['with' string_expression]
Examples:In all case, GRPBuild outputs a message as:
sample.gpr:6:06: raised Warning
In case of Error, GRPBuild stops:Thus it might be useful, for instance, in case constructions:
Example 2.10.9. Case Constructions of GPRBuild manual:
HTH, Pascal.