460a01443c
Effectively makes the functions act as noexcept, since there's no meaningful reason to propogate exceptions from "C" functions. Currently only applied to ALC functions, but can incrementally be applied to AL functions too. In the future, this could also handle ALC and AL errors with unique exception types (functions that utilize this behavior would need to ensure proper cleanup).
12 lines
166 B
C++
12 lines
166 B
C++
#ifndef ALEXCPT_H
|
|
#define ALEXCPT_H
|
|
|
|
#include <exception>
|
|
|
|
|
|
#define START_API_FUNC try
|
|
|
|
#define END_API_FUNC catch(...) { std::terminate(); }
|
|
|
|
#endif /* ALEXCPT_H */
|