mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
19 lines
404 B
C
19 lines
404 B
C
/**
|
|
* @file compiler/unused.h
|
|
*/
|
|
#ifndef PRISM_COMPILER_UNUSED_H
|
|
#define PRISM_COMPILER_UNUSED_H
|
|
|
|
/**
|
|
* GCC will warn if you specify a function or parameter that is unused at
|
|
* runtime. This macro allows you to mark a function or parameter as unused in a
|
|
* compiler-agnostic way.
|
|
*/
|
|
#if defined(__GNUC__)
|
|
# define PRISM_UNUSED __attribute__((unused))
|
|
#else
|
|
# define PRISM_UNUSED
|
|
#endif
|
|
|
|
#endif
|