A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
unused.h
Go to the documentation of this file.
1 #ifndef UNUSED_H
2 #define UNUSED_H
3 
4 #ifndef NS_UNUSED
5 # define NS_UNUSED(x) ((void)(x))
6 #endif
7 
8 #ifndef NS_UNUSED_GLOBAL
9 #if defined(__GNUC__)
10 # define NS_UNUSED_GLOBAL(x) x __attribute__((unused))
11 #elif defined(__LCLINT__)
12 # define NS_UNUSED_GLOBAL(x) /*@unused@*/ x
13 #else
14 # define NS_UNUSED_GLOBAL(x) x
15 #endif
16 #endif
17 
18 #endif /* UNUSED_H */