configure: rename error() to throw()

This commit is contained in:
Jeremy Baxter 2024-02-18 16:54:34 +13:00
parent 1d15eec7f8
commit 8568ca2fb3

4
configure vendored
View file

@ -14,7 +14,7 @@ present () {
using () {
printf "using $1\n"
}
error () {
throw () {
>&2 printf "$(basename $0): $1\n"
exit 1
}
@ -34,7 +34,7 @@ gen_CC () {
elif present gcc; then
cc=gcc
else
error "C compiler not found, please acquire a copy of LLVM Clang or the GNU C compiler"
throw "C compiler not found, please acquire a copy of LLVM Clang or the GNU C compiler"
fi
using "$cc"