Skip to content

Commit

Permalink
libdeng2: Added macro DENG2_UNUSED for hiding unused parameter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jul 29, 2012
1 parent 6e8fe40 commit caaf504
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doomsday/libdeng2/include/de/libdeng2.h
Expand Up @@ -107,6 +107,11 @@
# define DENG2_DEBUG_ONLY(x)
#endif

/**
* Macro for hiding the warning about an unused parameter.
*/
#define DENG2_UNUSED(x) (void)x

/**
* Macro for defining an opaque type in the C wrapper API.
*/
Expand Down

0 comments on commit caaf504

Please sign in to comment.