1717
1818#ifdef __cplusplus /* c++ definitions */
1919
20- const ISC_STATUS isc_facility = 20 ;
21- const ISC_STATUS isc_base = isc_facility << 24 ;
22- const ISC_STATUS isc_factor = 1 ;
23-
24- const ISC_STATUS isc_arg_end = 0 ; // end of argument list
25- const ISC_STATUS isc_arg_gds = 1 ; // generic DSRI status value
26- const ISC_STATUS isc_arg_string = 2 ; // string argument
27- const ISC_STATUS isc_arg_cstring = 3 ; // count & string argument
28- const ISC_STATUS isc_arg_number = 4 ; // numeric argument (long)
29- const ISC_STATUS isc_arg_interpreted = 5 ; // interpreted status code (string)
30- const ISC_STATUS isc_arg_vms = 6 ; // VAX/VMS status code (long)
31- const ISC_STATUS isc_arg_unix = 7 ; // UNIX error code
32- const ISC_STATUS isc_arg_domain = 8 ; // Apollo/Domain error code
33- const ISC_STATUS isc_arg_dos = 9 ; // MSDOS/OS2 error code
34- const ISC_STATUS isc_arg_mpexl = 10 ; // HP MPE/XL error code
35- const ISC_STATUS isc_arg_mpexl_ipc = 11 ; // HP MPE/XL IPC error code
36- const ISC_STATUS isc_arg_next_mach = 15 ; // NeXT/Mach error code
37- const ISC_STATUS isc_arg_netware = 16 ; // NetWare error code
38- const ISC_STATUS isc_arg_win32 = 17 ; // Win32 error code
39- const ISC_STATUS isc_arg_warning = 18 ; // warning argument
40- const ISC_STATUS isc_arg_sql_state = 19 ; // SQLSTATE
20+ inline constexpr ISC_STATUS isc_facility = 20 ;
21+ inline constexpr ISC_STATUS isc_base = isc_facility << 24 ;
22+ inline constexpr ISC_STATUS isc_factor = 1 ;
23+
24+ inline constexpr ISC_STATUS isc_arg_end = 0 ; // end of argument list
25+ inline constexpr ISC_STATUS isc_arg_gds = 1 ; // generic DSRI status value
26+ inline constexpr ISC_STATUS isc_arg_string = 2 ; // string argument
27+ inline constexpr ISC_STATUS isc_arg_cstring = 3 ; // count & string argument
28+ inline constexpr ISC_STATUS isc_arg_number = 4 ; // numeric argument (long)
29+ inline constexpr ISC_STATUS isc_arg_interpreted = 5 ; // interpreted status code (string)
30+ inline constexpr ISC_STATUS isc_arg_vms = 6 ; // VAX/VMS status code (long)
31+ inline constexpr ISC_STATUS isc_arg_unix = 7 ; // UNIX error code
32+ inline constexpr ISC_STATUS isc_arg_domain = 8 ; // Apollo/Domain error code
33+ inline constexpr ISC_STATUS isc_arg_dos = 9 ; // MSDOS/OS2 error code
34+ inline constexpr ISC_STATUS isc_arg_mpexl = 10 ; // HP MPE/XL error code
35+ inline constexpr ISC_STATUS isc_arg_mpexl_ipc = 11 ; // HP MPE/XL IPC error code
36+ inline constexpr ISC_STATUS isc_arg_next_mach = 15 ; // NeXT/Mach error code
37+ inline constexpr ISC_STATUS isc_arg_netware = 16 ; // NetWare error code
38+ inline constexpr ISC_STATUS isc_arg_win32 = 17 ; // Win32 error code
39+ inline constexpr ISC_STATUS isc_arg_warning = 18 ; // warning argument
40+ inline constexpr ISC_STATUS isc_arg_sql_state = 19 ; // SQLSTATE
4141
4242#define FB_IMPL_MSG_NO_SYMBOL (facility , number , text )
4343
4444#define FB_IMPL_MSG_SYMBOL (facility , number , symbol , text ) \
45- const ISC_STATUS isc_##symbol = FB_IMPL_MSG_ENCODE(number, FB_IMPL_MSG_FACILITY_##facility);
45+ inline constexpr ISC_STATUS isc_##symbol = FB_IMPL_MSG_ENCODE(number, FB_IMPL_MSG_FACILITY_##facility);
4646
4747#define FB_IMPL_MSG (facility , number , symbol , sqlCode , sqlClass , sqlSubClass , text ) \
4848 FB_IMPL_MSG_SYMBOL(facility, number, symbol, text)
@@ -53,7 +53,7 @@ const ISC_STATUS isc_arg_sql_state = 19; // SQLSTATE
5353#undef FB_IMPL_MSG_SYMBOL
5454#undef FB_IMPL_MSG
5555
56- const ISC_STATUS isc_err_max = 0
56+ inline constexpr ISC_STATUS isc_err_max = 0
5757 #define FB_IMPL_MSG_NO_SYMBOL (facility , number , text )
5858 #define FB_IMPL_MSG_SYMBOL (facility , number , symbol , text )
5959 #define FB_IMPL_MSG (facility , number , symbol , sqlCode , sqlClass , sqlSubClass , text ) + 1
0 commit comments