From cefb4fcee0df333b5b7b7a7b8f86af287cf9bb3c Mon Sep 17 00:00:00 2001 From: Jonathan De Wachter Date: Sat, 17 Aug 2013 12:19:35 +0200 Subject: [PATCH] Improved OpenAL error macro It now supports functions that return values. --- src/SFML/Audio/ALCheck.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Audio/ALCheck.hpp b/src/SFML/Audio/ALCheck.hpp index 80299c4b7..2384c8b18 100644 --- a/src/SFML/Audio/ALCheck.hpp +++ b/src/SFML/Audio/ALCheck.hpp @@ -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