gmio_core: add utility macro GMIO_UNUSED()

This commit is contained in:
Hugues Delorme 2014-11-21 11:40:49 +01:00
parent d2380c7b37
commit e284d9c7c8

View File

@ -75,6 +75,9 @@ typedef float gmio_real32_t;
/*! Typedef for 64bit real type (double) */ /*! Typedef for 64bit real type (double) */
typedef double gmio_real64_t; typedef double gmio_real64_t;
/*! Tells the compiler that a parameter is not used in the body of a function */
#define GMIO_UNUSED(x) (void)x;
#ifndef GMIO_INLINE #ifndef GMIO_INLINE
# if defined(__GNUC__) # if defined(__GNUC__)
# define GMIO_INLINE __inline__ /* Compatible with C90 */ # define GMIO_INLINE __inline__ /* Compatible with C90 */