FLTK 1.5.0
|
This file defines compiler-specific macros. More...
Go to the source code of this file.
Macros | |
#define | __fl_attr(x) |
This section lists macros for Doxygen documentation only. More... | |
#define | FL_DEPRECATED(msg, func) |
Enclosing a function or method in FL_DEPRECATED marks it as no longer recommended. More... | |
#define | FL_OVERRIDE override |
This macro makes it safe to use the C++11 keyword override with older compilers. More... | |
This file defines compiler-specific macros.
#define __fl_attr | ( | x | ) |
This section lists macros for Doxygen documentation only.
The next section will define the actual macros based on the compile used and based on the capabilities of the version of that compiler. To be used in prototypes with a variable list of arguments. This macro helps detection of mismatches between format string and argument list at compilation time.
Usage example: FL/fl_ask.H
#define FL_DEPRECATED | ( | msg, | |
func | |||
) |
Enclosing a function or method in FL_DEPRECATED marks it as no longer recommended.
This macro syntax can not be used if the return type contains a comma, which is not the case in FLTK.
#define FL_OVERRIDE override |
This macro makes it safe to use the C++11 keyword override
with older compilers.
Since FLTK 1.5.0 a C++11 capable compiler is required, hence we can safely define FL_OVERRIDE unconditionally as 'override'.
This macro is kept for backwards compatibility with old (1.4.x) user code that uses the FL_OVERRIDE macro.
We recommend to use 'override' explicitly if C++11 or higher is available.