From b6d79c2362746b35bf276a610afaa7b9218bf183 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 25 Apr 2018 04:09:37 +0200 Subject: Use specific error message for direction mismatch. Fix #559 --- src/grt/grt-lib.ads | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/grt/grt-lib.ads') diff --git a/src/grt/grt-lib.ads b/src/grt/grt-lib.ads index 6e01ea9de..5d0fdfa57 100644 --- a/src/grt/grt-lib.ads +++ b/src/grt/grt-lib.ads @@ -55,8 +55,11 @@ package Grt.Lib is Error_Severity : constant Integer := 2; Failure_Severity : constant Integer := 3; - procedure Ghdl_Bound_Check_Failed_L1 (Filename : Ghdl_C_String; - Line: Ghdl_I32); + -- Bound / Direction error. + procedure Ghdl_Bound_Check_Failed (Filename : Ghdl_C_String; + Line: Ghdl_I32); + procedure Ghdl_Direction_Check_Failed (Filename : Ghdl_C_String; + Line: Ghdl_I32); -- Program error has occured: -- * configuration of an already configured block. @@ -113,8 +116,10 @@ private pragma Export (C, Ghdl_Psl_Cover_Failed, "__ghdl_psl_cover_failed"); pragma Export (C, Ghdl_Report, "__ghdl_report"); - pragma Export (C, Ghdl_Bound_Check_Failed_L1, - "__ghdl_bound_check_failed_l1"); + pragma Export (C, Ghdl_Bound_Check_Failed, + "__ghdl_bound_check_failed"); + pragma Export (C, Ghdl_Direction_Check_Failed, + "__ghdl_direction_check_failed"); pragma Export (C, Ghdl_Program_Error, "__ghdl_program_error"); pragma Export (C, Ghdl_Malloc, "__ghdl_malloc"); -- cgit v1.2.3