(file) Return to sampleproduct.cpp CVS log (file) (dir) Up to [OMI] / omi / nits / sampleproduct

File: [OMI] / omi / nits / sampleproduct / sampleproduct.cpp (download)
Revision: 1.1, Mon Apr 20 17:19:54 2015 UTC (9 years, 1 month ago) by krisbash
Branch: MAIN
CVS Tags: OMI_1_0_8_2, OMI_1_0_8_1, HEAD
OMI 1.0.8-1

//*****************************************************************************
//    Copyright (C) 2011 Microsoft Corporation
//  All rights reserved.
//*****************************************************************************

#include <nits/base/nits.h>

NITS_EXTERN_C NITS_DLLEXPORT int DoSomething()
{
    int i = 0;
    if (NitsShouldFault(NitsHere(), NitsAutomatic))
        return i;

    i = i + 1;

    if (NitsShouldFault(NitsHere(), NitsAutomatic))
        return i;

    i = i + 2;

    return i;
}

ViewCVS 0.9.2