Skip to content

Commit

Permalink
use regular macros with release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Sep 7, 2024
1 parent 2a269f1 commit 02c8080
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/render_d3d9.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@
#include "config.h"


#ifdef _DEBUG
#define FAILEDX(stmt) d3d9_check_failed(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_succeeded(HRESULT hr, const char* stmt);
Expand Down

0 comments on commit 02c8080

Please sign in to comment.