pike.git
/
src
/
global.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/global.h:541:
#endif #ifndef INLINE #if defined(__GNUC__) && !defined(PIKE_DEBUG) && !defined(lint) #define INLINE inline #else #define INLINE #endif #endif
+
/* Suppress compiler warnings for unused parameters if possible. The mangling of
+
argument name is required to catch when an unused argument later is used without
+
removing the annotation. */
+
#ifndef UNUSED
+
# ifdef __GNUC__
+
# define UNUSED(x) PIKE_CONCAT(x,_UNUSED) __attribute__((unused))
+
# else
+
# define UNUSED(x) PIKE_CONCAT(x,_UNUSED)
+
# endif
+
#endif
+
#ifndef DEBUGUSED
+
# ifdef PIKE_DEBUG
+
# define DEBUGUSED(x) x
+
# else
+
# define DEBUGUSED(x) UNUSED(x)
+
# endif
+
#endif
+
/* PMOD_EXPORT exports a function / variable vfsh. */ #ifndef PMOD_EXPORT # if defined (__NT__) && defined (USE_DLL) # ifdef DYNAMIC_MODULE # define PMOD_EXPORT __declspec(dllimport) # else /* A pmod export becomes an import in the dynamic module. This means * that modules can't use PMOD_EXPORT for identifiers they export * themselves, unless they are compiled statically. */ # define PMOD_EXPORT __declspec(dllexport)