diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-06-17 21:53:30 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-06-17 21:53:30 +0200 |
commit | 887496173322c262a976ac48d391d89255bf83f0 (patch) | |
tree | 82ff89fc4413cbc89b0132ed993c12f33a954524 /src/grt/grt-lib.ads | |
parent | 473c83961abe4e2fb52c8812e46bf19a41fe52cf (diff) | |
download | ghdl-887496173322c262a976ac48d391d89255bf83f0.tar.gz ghdl-887496173322c262a976ac48d391d89255bf83f0.tar.bz2 ghdl-887496173322c262a976ac48d391d89255bf83f0.zip |
vhdl: add ghdl_integer_index_check_failed. For #1257
Improve error message in case of (integer) index not in bounds.
Diffstat (limited to 'src/grt/grt-lib.ads')
-rw-r--r-- | src/grt/grt-lib.ads | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/grt/grt-lib.ads b/src/grt/grt-lib.ads index b0f68d3e9..6e65a3188 100644 --- a/src/grt/grt-lib.ads +++ b/src/grt/grt-lib.ads @@ -54,6 +54,12 @@ package Grt.Lib is procedure Ghdl_Direction_Check_Failed (Filename : Ghdl_C_String; Line: Ghdl_I32); + procedure Ghdl_Integer_Index_Check_Failed + (Filename : Ghdl_C_String; + Line : Ghdl_I32; + Val : Std_Integer; + Rng : Std_Integer_Range_Ptr); + -- Program error has occurred: -- * configuration of an already configured block. procedure Ghdl_Program_Error (Filename : Ghdl_C_String; @@ -117,6 +123,9 @@ private "__ghdl_bound_check_failed"); pragma Export (C, Ghdl_Direction_Check_Failed, "__ghdl_direction_check_failed"); + pragma Export (C, Ghdl_Integer_Index_Check_Failed, + "__ghdl_integer_index_check_failed"); + pragma Export (C, Ghdl_Program_Error, "__ghdl_program_error"); pragma Export (C, Ghdl_Check_Stack_Allocation, |