Fixed __VA_ARGS__ in gcc when no args

This commit is contained in:
unknown 2022-06-26 19:04:25 +00:00 committed by Sam Lantinga
parent 51c6488f97
commit ebe4f47f2b

View file

@ -59,8 +59,8 @@
#define D3D_GUID(X) (X) #define D3D_GUID(X) (X)
#else #else
#define SAFE_RELEASE(X) if (X) { (X)->lpVtbl->Release(X); X = NULL; } #define SAFE_RELEASE(X) if (X) { (X)->lpVtbl->Release(X); X = NULL; }
#define D3D_CALL(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), __VA_ARGS__) #define D3D_CALL(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), ##__VA_ARGS__)
#define D3D_CALL_RET(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), __VA_ARGS__) #define D3D_CALL_RET(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), ##__VA_ARGS__)
#define D3D_GUID(X) &(X) #define D3D_GUID(X) &(X)
#endif #endif