Use exceptions to handle buffer errors
commitf197e34d77ccaa6ea155996f0aeb9fe26629f69d
authorChris Robinson <chris.kcat@gmail.com>
Wed, 13 Mar 2024 15:03:19 +0000 (13 08:03 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Wed, 13 Mar 2024 15:03:19 +0000 (13 08:03 -0700)
treeae603cc69a1cb7f61756ffb66fc4ad2462831d1c
parent7c3f3da1d4aae5183865a023236764a19e3ae699
Use exceptions to handle buffer errors

Instead of abusing  return setError(...);  to return early with a void return
type (which doesn't work for non-void-returning functions). Compilers should
also automatically optimize for non-exception paths without (un)likely
attributes.
CMakeLists.txt
al/buffer.cpp
al/error.cpp
al/error.h [new file with mode: 0644]