diff --git a/SMAA.cpp b/SMAA.cpp index 3308a96..2ce57b2 100644 --- a/SMAA.cpp +++ b/SMAA.cpp @@ -46,14 +46,19 @@ using namespace std; #include "Settings.h" +#ifdef UNICODE +#define STRINGIFY(x) L#x +#else +#define STRINGIFY(x) #x +#endif #pragma region Useful Macros from DXUT (copy-pasted here as we prefer this to be as self-contained as possible) #if defined(DEBUG) || defined(_DEBUG) #ifndef V -#define V(x) { hr = (x); if (FAILED(hr)) { DXTrace(__FILE__, (DWORD)__LINE__, hr, L#x, true); } } +#define V(x) { hr = (x); if (FAILED(hr)) { DXTrace(__FILE__, (DWORD)__LINE__, hr, STRINGIFY(x), true); } } #endif #ifndef V_RETURN -#define V_RETURN(x) { hr = (x); if (FAILED(hr)) { return DXTrace(__FILE__, (DWORD)__LINE__, hr, L#x, true); } } +#define V_RETURN(x) { hr = (x); if (FAILED(hr)) { return DXTrace(__FILE__, (DWORD)__LINE__, hr, STRINGIFY(x), true); } } #endif #else #ifndef V