Improve the CHECK macro used in DX9 and DX11 to allow more flexible error messages.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5733 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
NeoBrainX 2010-06-18 14:14:13 +00:00
parent 0a46dead9c
commit 0649bf2a00
4 changed files with 8 additions and 10 deletions

View file

@ -24,7 +24,7 @@
#include "TextureConverter.h"
#undef CHECK
#define CHECK(hr, Message) if (FAILED(hr)) { PanicAlert(__FUNCTION__ " FAIL: %s" , Message); }
#define CHECK(hr, Message, ...) if (FAILED(hr)) { PanicAlert(__FUNCTION__ "Failed in %s at line %d: " Message, __FILE__, __LINE__, __VA_ARGS__); }
FramebufferManager FBManager;