Improved OpenAL error macro

It now supports functions that return values.
This commit is contained in:
Jonathan De Wachter 2013-08-17 12:19:35 +02:00
parent 8c906a7a3d
commit cefb4fcee0

View File

@ -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