mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
update openal
This commit is contained in:
parent
62f3b93ff9
commit
6721a6b021
287 changed files with 33851 additions and 27325 deletions
24
Engine/lib/openal-soft/common/alassert.h
Normal file
24
Engine/lib/openal-soft/common/alassert.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef AL_ASSERT_H
|
||||
#define AL_ASSERT_H
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "opthelpers.h"
|
||||
|
||||
namespace al {
|
||||
|
||||
[[noreturn]]
|
||||
void do_assert(const char *message, int linenum, const char *filename, const char *funcname) noexcept;
|
||||
|
||||
} /* namespace al */
|
||||
|
||||
/* A custom assert macro that is not compiled out for Release/NDEBUG builds,
|
||||
* making it an appropriate replacement for assert() checks that must not be
|
||||
* ignored.
|
||||
*/
|
||||
#define alassert(cond) do { \
|
||||
if(!(cond)) UNLIKELY \
|
||||
al::do_assert("Assertion '" #cond "' failed", __LINE__, __FILE__, std::data(__func__)); \
|
||||
} while(0)
|
||||
|
||||
#endif /* AL_ASSERT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue