Ruby
3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
|
Defines RBIMPL_WARNING_PUSH. More...
Go to the source code of this file.
Macros | |
#define | RBIMPL_WARNING_PUSH() __pragma(warning(push)) |
Pushes compiler warning state. More... | |
#define | RBIMPL_WARNING_POP() __pragma(warning(pop)) |
Pops compiler warning state. More... | |
#define | RBIMPL_WARNING_ERROR(flag) __pragma(warning(error: flag)) |
Turns a warning into a fatal error. More... | |
#define | RBIMPL_WARNING_IGNORED(flag) __pragma(warning(disable: flag)) |
Suppresses a warning. More... | |
Defines RBIMPL_WARNING_PUSH.
RBIMPL
or rbimpl
are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will. __VA_ARGS__
is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98.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 | ) | __pragma(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 | ) | __pragma(warning(disable: 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 | ( | ) | __pragma(warning(pop)) |
Pops compiler warning state.
Definition at line 62 of file warning_push.h.
#define RBIMPL_WARNING_PUSH | ( | ) | __pragma(warning(push)) |
Pushes compiler warning state.
Definition at line 55 of file warning_push.h.