1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/libs/d3d9/d3d9macros.hpp

22 lines
656 B
C++

#pragma once
//not sure if this goes here.
/*#define API_ENTER_NO_LOCK() \
do { \
InterlockedIncrement(&g_nInsideAPI); \
} while (false)*/
// #ifdef _DEBUG
// #define DXGASSERT(exp) do { \
// if (!(exp)) { \
// fprintf(stderr, "Assertion failed: %s, file %s, line %d\n", #exp, __FILE__, __LINE__); \
// abort(); \
// } \
// } while (0)
// #else
// #define DXGASSERT(exp) ((void)0)
// #endif
// #define MAKEFOURCC(ch0, ch1, ch2, ch3) \
// ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
// ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))