A Discrete-Event Network Simulator
API
unused.h
Go to the documentation of this file.
1 #ifndef UNUSED_H
2 #define UNUSED_H
3 
15 #ifndef NS_UNUSED
16 # define NS_UNUSED(x) ((void)(x))
17 #endif
18 
24 #ifndef NS_UNUSED_GLOBAL
25 #if defined(__GNUC__)
26 # define NS_UNUSED_GLOBAL(x) x __attribute__((unused))
27 #elif defined(__LCLINT__)
28 # define NS_UNUSED_GLOBAL(x) /*@unused@*/ x
29 #else
30 # define NS_UNUSED_GLOBAL(x) x
31 #endif
32 #endif
33 
34 #endif /* UNUSED_H */