version 1.82.2.5, 2013/10/14 16:25:58
|
version 1.87, 2012/07/30 09:23:47
|
|
|
# include <Pegasus/Common/Platform_VMS_IA64_DECCXX.h> | # include <Pegasus/Common/Platform_VMS_IA64_DECCXX.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_XSCALE_GNU) | #elif defined (PEGASUS_PLATFORM_LINUX_XSCALE_GNU) |
# include <Pegasus/Common/Platform_LINUX_XSCALE_GNU.h> | # include <Pegasus/Common/Platform_LINUX_XSCALE_GNU.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_AARCH64_GNU) |
|
# include <Pegasus/Common/Platform_LINUX_AARCH64_GNU.h> |
|
#elif defined (PEGASUS_PLATFORM_LINUX_X86_64_CLANG) | #elif defined (PEGASUS_PLATFORM_LINUX_X86_64_CLANG) |
# include <Pegasus/Common/Platform_LINUX_X86_64_CLANG.h> | # include <Pegasus/Common/Platform_LINUX_X86_64_CLANG.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_IX86_CLANG) | #elif defined (PEGASUS_PLATFORM_LINUX_IX86_CLANG) |
# include <Pegasus/Common/Platform_LINUX_IX86_CLANG.h> | # include <Pegasus/Common/Platform_LINUX_IX86_CLANG.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_SH4_GNU) |
|
# include <Pegasus/Common/Platform_LINUX_SH4_GNU.h> |
|
#else | #else |
# error "<Pegasus/Common/Config.h>: Unsupported Platform" | # error "<Pegasus/Common/Config.h>: Unsupported Platform" |
#endif | #endif |
| |
|
|
|
|
/* | /* |
|
//<<< Sun Apr 6 19:28:00 2003 mdd >>> |
// | // |
// COMPILER Checks | // COMPILER Checks |
// | // |
|
|
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 |
|
| |
/* | /* |
**============================================================================== | **============================================================================== |