(file) Return to Config.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Config.h between version 1.87 and 1.88

version 1.87, 2012/07/30 09:23:47 version 1.88, 2013/04/18 11:55:42
Line 278 
Line 278 
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
 #endif #endif
  
   
   /*
    *PEGASUS_UNREACHABLE implies unreachable code in pegasus.
    *Should be used in places where the control should not reached.
    *Please use in this way
    * PEGASUS_UNREACHABLE( expression;)
    *not in this way
    * PEGASUS_UNREACHABLE(expression);
    *
    *Though both are same, Former will prevent ;;(double semicolon)
    *
    */
   
 #ifdef PEGASUS_SUPPRESS_UNREACHABLE_STATEMENTS #ifdef PEGASUS_SUPPRESS_UNREACHABLE_STATEMENTS
 # define PEGASUS_UNREACHABLE(CODE) # define PEGASUS_UNREACHABLE(CODE)
 #else #else
   # if defined(__clang__ )
   #  define PEGASUS_UNREACHABLE(CODE) __builtin_unreachable();
   # elif defined(GCC_VERSION)
   #  if GCC_VERSION >= 40500 //Unreachable supported only for gcc 4.5 and above
   #   define PEGASUS_UNREACHABLE(CODE) __builtin_unreachable();
   #  else
 # define PEGASUS_UNREACHABLE(CODE) CODE # define PEGASUS_UNREACHABLE(CODE) CODE
 #endif #endif
   # elif defined(_MSC_VER) //PEGASUS_OS_TYPE_WINDOWS
   #  define PEGASUS_UNREACHABLE(CODE) __assume(0);
   # else
   #  define PEGASUS_UNREACHABLE(CODE) CODE
   # endif
   #endif
  
 /* /*
 **============================================================================== **==============================================================================


Legend:
Removed from v.1.87  
changed lines
  Added in v.1.88

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2