mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Improved OpenAL error macro
It now supports functions that return values.
This commit is contained in:
parent
8c906a7a3d
commit
cefb4fcee0
@ -50,7 +50,7 @@ namespace priv
|
||||
#ifdef SFML_DEBUG
|
||||
|
||||
// If in debug mode, perform a test on every call
|
||||
#define alCheck(Func) ((Func), priv::alCheckError(__FILE__, __LINE__))
|
||||
#define alCheck(x) x; sf::priv::alCheckError(__FILE__, __LINE__);
|
||||
|
||||
#else
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user