Created
January 2, 2013 01:00
-
-
Save anonymous/4431386 to your computer and use it in GitHub Desktop.
Stealth macro nesting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (FAILED(D3D11CreateDevice( | |
NULL, | |
D3D_DRIVER_TYPE_HARDWARE, | |
NULL, | |
#if _DEBUG | |
D3D11_CREATE_DEVICE_DEBUG, | |
#else | |
0, | |
#endif | |
NULL, | |
0, | |
D3D11_SDK_VERSION, | |
g_pDevice.address(), | |
&featureLevel, | |
g_pContext.address()))) | |
{ | |
fprintf(stderr, "Could not create D3D11 device!\n"); | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment