mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
use regular macros with release builds
This commit is contained in:
parent
2a269f19b6
commit
02c8080910
@ -15,8 +15,13 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
#define FAILEDX(stmt) d3d9_check_failed(stmt, #stmt)
|
#define FAILEDX(stmt) d3d9_check_failed(stmt, #stmt)
|
||||||
#define SUCCEEDEDX(stmt) d3d9_check_succeeded(stmt, #stmt)
|
#define SUCCEEDEDX(stmt) d3d9_check_succeeded(stmt, #stmt)
|
||||||
|
#else
|
||||||
|
#define FAILEDX(stmt) FAILED(stmt)
|
||||||
|
#define SUCCEEDEDX(stmt) SUCCEEDED(stmt)
|
||||||
|
#endif
|
||||||
|
|
||||||
static BOOL d3d9_check_failed(HRESULT hr, const char* stmt);
|
static BOOL d3d9_check_failed(HRESULT hr, const char* stmt);
|
||||||
static BOOL d3d9_check_succeeded(HRESULT hr, const char* stmt);
|
static BOOL d3d9_check_succeeded(HRESULT hr, const char* stmt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user