~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/blenlib/BLI_utildefines.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
 
114
114
/* can be used in simple macros */
115
115
#define CHECK_TYPE_INLINE(val, type) \
116
 
        ((void)(((type *)0) != (val)))
 
116
        ((void)(((type)0) != (val)))
117
117
 
118
118
#define SWAP(type, a, b)  {    \
119
119
        type sw_ap;                \
337
337
#  define UNUSED_FUNCTION(x) UNUSED_ ## x
338
338
#endif
339
339
 
340
 
#ifdef __GNUC__
341
 
#  define WARN_UNUSED  __attribute__((warn_unused_result))
342
 
#else
343
 
#  define WARN_UNUSED
344
 
#endif
345
 
 
346
340
/*little macro so inline keyword works*/
347
341
#if defined(_MSC_VER)
348
342
#  define BLI_INLINE static __forceinline
388
382
#  define BLI_assert(a) (void)0
389
383
#endif
390
384
 
391
 
/* C++ can't use _Static_assert, expects static_assert() but c++0x only */
392
 
#if (!defined(__cplusplus)) && (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 406))  /* gcc4.6+ only */
 
385
/* C++ can't use _Static_assert, expects static_assert() but c++0x only,
 
386
 * Coverity also errors out. */
 
387
#if (!defined(__cplusplus)) && \
 
388
    (!defined(__COVERITY__)) && \
 
389
    (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 406))  /* gcc4.6+ only */
393
390
#  define BLI_STATIC_ASSERT(a, msg) _Static_assert(a, msg);
394
391
#else
395
392
   /* TODO msvc, clang */