xentara-utils v2.0.4
The Xentara Utility Library
|
Macros | |
#define | XENTARA_WARNING |
Decorated a #pragma message message so that it looks like a compiler warning. | |
#define XENTARA_WARNING |
Decorated a #pragma message message so that it looks like a compiler warning.
This macro allows you to add a prefix to a #pragma message directive to make it look more like a regular compiler warning. The macro adds file name and line number on compilers like the Microsoft Visual C++ compiler (MSVC), that normally do not output file names and line numers for #pragma message messages. It also adds the string “warning” to the message for compilers that don’t do that themselves.
To output a warning message, use the macro as follows:
This will output the following messages:
MSVC:
Clang:
GCC: