diff options
Diffstat (limited to 'gl/c++defs.h')
-rw-r--r-- | gl/c++defs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gl/c++defs.h b/gl/c++defs.h index 8ad4695..eb66967 100644 --- a/gl/c++defs.h +++ b/gl/c++defs.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* C++ compatible function declaration macros. | 1 | /* C++ compatible function declaration macros. |
2 | Copyright (C) 2010-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2010-2024 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This program is free software: you can redistribute it and/or modify it | 4 | This program is free software: you can redistribute it and/or modify it |
5 | under the terms of the GNU Lesser General Public License as published | 5 | under the terms of the GNU Lesser General Public License as published |
@@ -99,6 +99,12 @@ | |||
99 | Example: | 99 | Example: |
100 | _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) | 100 | _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) |
101 | _GL_ARG_NONNULL ((1))); | 101 | _GL_ARG_NONNULL ((1))); |
102 | |||
103 | Note: Attributes, such as _GL_ATTRIBUTE_DEPRECATED, are supported in front | ||
104 | of a _GL_FUNCDECL_RPL invocation only in C mode, not in C++ mode. (That's | ||
105 | because | ||
106 | [[...]] extern "C" <declaration>; | ||
107 | is invalid syntax in C++.) | ||
102 | */ | 108 | */ |
103 | #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ | 109 | #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ |
104 | _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) | 110 | _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) |