1.1 --- a/templates/progops.c Tue Jun 22 23:03:52 2021 +0200
1.2 +++ b/templates/progops.c Sun Jun 27 22:10:02 2021 +0200
1.3 @@ -1,6 +1,6 @@
1.4 /* Operations depending on program specifics.
1.5
1.6 -Copyright (C) 2015, 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2015, 2016, 2017, 2018, 2021 Paul Boddie <paul@boddie.org.uk>
1.8
1.9 This program is free software; you can redistribute it and/or modify it under
1.10 the terms of the GNU General Public License as published by the Free Software
1.11 @@ -161,6 +161,13 @@
1.12 __Raise(__new___builtins___core_TypeError(__NULL));
1.13 }
1.14
1.15 +void __raise_value_error(__attr value)
1.16 +{
1.17 +#ifdef __HAVE___builtins___exception_base_ValueError
1.18 + __Raise(__new___builtins___exception_base_ValueError(__NULL, value));
1.19 +#endif /* __HAVE___builtins___exception_base_ValueError */
1.20 +}
1.21 +
1.22 void __raise_zero_division_error()
1.23 {
1.24 __Raise(__new___builtins___core_ZeroDivisionError(__NULL));