Add macro to mark unimplemented functions and methods

This commit is contained in:
rfm 2023-11-21 08:54:39 +00:00
parent 270429cf97
commit 5917e32dbb
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2023-11-21 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/GNUstepBase/GSVersionMacros.h: Added GS_UNIMPLEMENTED to
mark methods and functions as unimplemented for compiler warnings
and documentation. github #350
2023-11-14 Frederik Seiffert <frederik@algoriddim.com>
* Source/NSURLRequest.m: Support deleting NSMutableURLRequest headers by

View file

@ -242,11 +242,20 @@
*/
#if defined(__clang__) || GS_GCC_MINREQ(3,1)
# define GS_DEPRECATED_FUNC __attribute__ ((deprecated))
# define GS_DEPRECATED_FUNC __attribute__((deprecated))
#else
# define GS_DEPRECATED_FUNC
#endif
/* This attribute is placed immediately before the name of a method
* or function to mark it as unimplemented.
*/
#if defined(__clang__) || GS_GCC_MINREQ(3,1)
# define GS_UNIMPLEMENTED __attribute__((deprecated("*** not implemented - please contribute an implementation before using this feature ***")))
#else
# define GS_UNIMPLEMENTED
#endif
#define GS_UNUSED_ARG __attribute__((unused))
#define GS_UNUSED_FUNC __attribute__((unused))