⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compiler.h

📁 一个开源的网络开发库ACE
💻 H
字号:
/* compiler.h,v 1.13 2001/04/23 17:44:49 coryan Exp

 * ============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    pace/config/compiler.h
 *
 * = AUTHOR
 *    Luther Baker
 *
 * ============================================================================ */

#ifndef PACE_CONFIG_COMPILER_H
#define PACE_CONFIG_COMPILER_H

#if defined (__cplusplus)
# define PACE_HAS_CPLUSPLUS __cplusplus
# if defined (PACE_HAS_INLINE)
#   define PACE_INLINE inline
# else
#   define PACE_INLINE
# endif /* ! PACE_HAS_INLINE */
#else  /* ! __cplusplus */
/* If PACE_HAS_INLINE is defined then we need the PACE functions to be
 * static. Otherwise, we want PACE_INLINE to be defined as nothing.
 */
# if defined (PACE_HAS_INLINE)
#   define PACE_INLINE static
# else
#   define PACE_INLINE
# endif /* ! PACE_HAS_INLINE */
#endif /* ! __cplusplus */

#if defined (PACE_HAS_INLINE) && defined (__GNUC__) && !(PACE_LYNXOS)
# define PACE_BROKEN_INLINE inline
#else
# define PACE_BROKEN_INLINE
#endif /* PACE_HAS_INLINE */

/* ============================================================================
 * Compiler Silencing macros
 *
 * Some compilers complain about parameters that are not used.  This macro
 * should keep them quiet.
 * ============================================================================
 */

#if defined (ghs) ||         \
    defined (__GNUC__) ||    \
    defined (__hpux) ||      \
    defined (__sgi) ||       \
    defined (__DECCXX) ||    \
    defined (__KCC) ||       \
    defined (__rational__)   \
    || (__USLC__)
/* Some compilers complain about "statement with no effect" with (a).
 * This eliminates the warnings, and no code is generated for the null
 * conditional statement.  NOTE: that may only be true if -O is enabled,
 * such as with GreenHills (ghs) 1.8.8.
 */
# define PACE_UNUSED_ARG(a) {if (&a)  { /* null */ }}
#else /* ! ghs || __GNUC__ || ..... */
# define PACE_UNUSED_ARG(a) (a)
#endif /* ! ghs || __GNUC__ || ..... */

#endif /* PACE_CONFIG_COMPILER_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -