Changeset bc085c in git for misc/auxiliary.h.in


Ignore:
Timestamp:
Nov 10, 2010, 3:40:49 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
cd246b32ff1d71ef365e9ae2dd3c16bc4a01a36e
Parents:
7a452a7797022a5eead0baf7b8b21bb39014afaa
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-11-10 15:40:49+01:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:38+01:00
Message:
some more C++ features for future
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/auxiliary.h.in

    r7a452a7 rbc085c  
    302302
    303303#ifdef _DEBUG
    304 #      define FORCEINLINE inline
     304#      define FORCE_INLINE inline
    305305#else
    306306#ifdef NDEBUG
    307307#if   defined(_MSC_VER)
    308 #      define FORCEINLINE __forceinline
     308#      define FORCE_INLINE __forceinline
    309309#elif defined(__GNUC__) && __GNUC__ > 3
    310 #      define FORCEINLINE inline __attribute__ ((always_inline))
    311 #else
    312 #      define FORCEINLINE inline
    313 #endif
    314 #else
    315 #      define FORCEINLINE inline
     310#      define FORCE_INLINE inline __attribute__ ((always_inline))
     311#else
     312#      define FORCE_INLINE inline
     313#endif
     314#else
     315#      define FORCE_INLINE inline
    316316#endif
    317317/* NDEBUG */
     
    325325
    326326
     327#if defined(__GNUC__) && defined(__GNUC_MINOR__)
     328#define _GNUC_PREREQ(maj, min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
     329#else
     330#define _GNUC_PREREQ(maj, min) 0
     331#endif
     332
     333#if _GNUC_PREREQ(3,3) && defined(__ELF__)
     334#define FORCE_INTERNAL __attribute__ ((visibility ("internal")))
     335#else
     336#define FORCE_INTERNAL
     337#endif
     338
     339#if _GNUC_PREREQ(3,3)
     340#define FORCE_DEPRECATED __attribute__ ((deprecated))
     341#else
     342#define FORCE_DEPRECATED
     343#endif
     344
     345#ifdef __cplusplus
     346# define  BEGIN_CDECL extern "C" {
     347# define  END_CDECL   }
     348#else
     349# define  BEGIN_CDECL
     350# define  END_CDECL
     351#endif
     352
    327353
    328354
Note: See TracChangeset for help on using the changeset viewer.