Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2013 01:00
Show Gist options
  • Select an option

  • Save anonymous/4431386 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4431386 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Jan 2, 2013.
    19 changes: 19 additions & 0 deletions stealth-macro-nesting.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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;
    }