Skip to content

Instantly share code, notes, and snippets.

@Reedbeta
Forked from anonymous/stealth-macro-nesting.cpp
Created January 2, 2013 01:01
Show Gist options
  • Select an option

  • Save Reedbeta/4431418 to your computer and use it in GitHub Desktop.

Select an option

Save Reedbeta/4431418 to your computer and use it in GitHub Desktop.

Revisions

  1. Reedbeta revised this gist Jan 2, 2013. 1 changed file with 14 additions and 14 deletions.
    28 changes: 14 additions & 14 deletions stealth-macro-nesting.cpp
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,19 @@
    if (FAILED(D3D11CreateDevice(
    NULL,
    D3D_DRIVER_TYPE_HARDWARE,
    NULL,
    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;
    }
    NULL,
    0,
    D3D11_SDK_VERSION,
    g_pDevice.address(),
    &featureLevel,
    g_pContext.address())))
    {
    fprintf(stderr, "Could not create D3D11 device!\n");
    return false;
    }
  2. @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;
    }