pike.git/
src/
global.h
Branch:
Tag:
Non-build tags
All tags
No tags
2014-10-01
2014-10-01 14:03:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>
03ce316c98bc1029f957c088db42430a62744dd1 (
14
lines) (+
9
/-
5
)
[
Show
|
Annotate
]
Branch:
8.0
Build: Added macro PIKE_UNUSED to avoid name-clash.
562:
/* 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
+
#ifndef
PIKE_
UNUSED
# ifdef __GNUC__
-
# define UNUSED(x) PIKE_CONCAT(x,_UNUSED) __attribute__((unused))
+
# define
PIKE_
UNUSED(x) PIKE_CONCAT(x,_UNUSED) __attribute__((unused))
# else
-
# define UNUSED(x) PIKE_CONCAT(x,_UNUSED)
+
# define
PIKE_
UNUSED(x) PIKE_CONCAT(x,_UNUSED)
# endif #endif
-
+
#ifndef UNUSED
+
# define UNUSED(x) PIKE_UNUSED(x)
+
#endif
#ifdef PIKE_DEBUG # define DEBUGUSED(x) x #else
-
# define DEBUGUSED(x) UNUSED(x)
+
# define DEBUGUSED(x)
PIKE_
UNUSED(x)
#endif #ifdef DEBUG_MALLOC # define DMALLOCUSED(x) x #else
-
# define DMALLOCUSED(x) UNUSED(x)
+
# define DMALLOCUSED(x)
PIKE_
UNUSED(x)
#endif