Code Pyre

All Code Dies and Burns in Time

Fork me on GitHub

C++ if Statement Oddity

| Comments

I found that you can do work such as assigning a variable and executing a method outside of the main expression of an if statement. For example:

1
2
3
if( hRes = GetApplicationState(), NT_SUCCESS(hRes) ) {
    // Do something
}

« Open Source Projects Ninject MessageBroker Update »

Comments