Changeset 1834 for trunk/src/kmk/make.h


Ignore:
Timestamp:
Oct 11, 2008, 9:07:29 PM (17 years ago)
Author:
bird
Message:

kmk: assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/make.h

    r1827 r1834  
    148148#ifndef CHAR_BIT
    149149# define CHAR_BIT 8
     150#endif
     151
     152#ifdef KMK
     153# ifdef _MSC_VER
     154#  define MY_INLINE  _inline static
     155# elif defined(__GNUC__)
     156#  define MY_INLINE  static __inline__
     157# else
     158#  define MY_INLINE  static
     159# endif
     160#endif /* KMK */
     161#if defined(CONFIG_WITH_VALUE_LENGTH) || defined(KMK)
     162# ifndef NDEBUG
     163#  define MY_ASSERT_MSG(expr, printfargs) \
     164    do { if (!(expr)) { printf printfargs; assert(expr); } } while (0)
     165# else
     166#  define MY_ASSERT_MSG(expr, printfargs)   do { } while (0)
     167# endif
    150168#endif
    151169
Note: See TracChangeset for help on using the changeset viewer.