Guest User

Untitled

a guest
Apr 4th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.95 KB | None | 0 0
  1.           int err = 0;
  2.               if ( condition1 ) {
  3.                 if ( condition2 ) {
  4.                   if ( condition3 ) {
  5.                     if ( condition4 ) {
  6.                       switch ( type ) {
  7.                         case TYPE_1: {
  8.                           DoSomething();
  9.                           break;
  10.                         }
  11.                         default: {
  12.               DoSomethingDefault();
  13.                           break;
  14.                         }
  15.                       }
  16.                     }
  17.                     else {
  18.                       err = ERROR_1;
  19.                     }
  20.                   }
  21.                   else {
  22.                     err = ERROR_2;
  23.                   }
  24.                 }
  25.                 else {
  26.                   err = ERROR_3;
  27.                 }
  28.               }
  29.               else {
  30.                 err = ERROR_4;
  31.               }
  32.               if ( err ) {
  33.         SendErrorMessage(err);
  34.               }
Advertisement
Add Comment
Please, Sign In to add comment