-------------------
procedure Error_Msg_CRT (Feature : String; N : Node_Id) is
- CNRT : constant String := " not allowed in no run time mode";
- CCRT : constant String := " not supported by configuration>";
-
- S : String (1 .. Feature'Length + 1 + CCRT'Length);
- L : Natural;
-
begin
- S (1) := '|';
- S (2 .. Feature'Length + 1) := Feature;
- L := Feature'Length + 2;
-
if No_Run_Time_Mode then
- S (L .. L + CNRT'Length - 1) := CNRT;
- L := L + CNRT'Length - 1;
+ Error_Msg_N ('|' & Feature & " not allowed in no run time mode", N);
else pragma Assert (Configurable_Run_Time_Mode);
- S (L .. L + CCRT'Length - 1) := CCRT;
- L := L + CCRT'Length - 1;
+ Error_Msg_N ('|' & Feature & " not supported by configuration>", N);
end if;
- Error_Msg_N (S (1 .. L), N);
Configurable_Run_Time_Violations := Configurable_Run_Time_Violations + 1;
end Error_Msg_CRT;