Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
Defines RBIMPL_WARNING_PUSH. More...
Go to the source code of this file.
Macros | |
#define | RBIMPL_WARNING_PUSH() |
Pushes compiler warning state. | |
#define | RBIMPL_WARNING_POP() |
Pops compiler warning state. | |
#define | RBIMPL_WARNING_ERROR(flag) |
Turns a warning into a fatal error. | |
#define | RBIMPL_WARNING_IGNORED(flag) |
Suppresses a warning. |
Defines RBIMPL_WARNING_PUSH.
Q: Why all the macros defined in this file are function-like macros?
A: Sigh. This is because of Doxygen. Its SKIP_FUNCTION_MACROS = YES configuration setting requests us that if we want it to ignore these macros, then we have to do two things: (1) let them be defined as function-like macros, and (2) place them separately in their own line, like below:
Definition in file warning_push.h.
#define RBIMPL_WARNING_ERROR | ( | flag | ) |
Turns a warning into a fatal error.
flag | A flag that represents the kind of warnings. |
Definition at line 71 of file warning_push.h.
#define RBIMPL_WARNING_IGNORED | ( | flag | ) |
Suppresses a warning.
flag | A flag that represents the kind of warnings. |
Definition at line 80 of file warning_push.h.
#define RBIMPL_WARNING_POP | ( | ) |
Pops compiler warning state.
Definition at line 62 of file warning_push.h.
#define RBIMPL_WARNING_PUSH | ( | ) |
Pushes compiler warning state.
Definition at line 55 of file warning_push.h.