From: Lawrence S. <ljs...@us...> - 2017-01-27 21:51:30
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 2680f63cf63410b14683923df91a14fef7c0b352 (commit) from 6bc63beb72a37bd248e10a9f0392bce3fda7c18f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 2680f63cf63410b14683923df91a14fef7c0b352 Author: Lawrence Sebald <ljs...@us...> Date: Fri Jan 27 16:51:01 2017 -0500 Add two attributes to kos/cdefs.h for marking things as deprecated. ----------------------------------------------------------------------- Summary of changes: include/kos/cdefs.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/kos/cdefs.h b/include/kos/cdefs.h index 36566b3..9b4259d 100644 --- a/include/kos/cdefs.h +++ b/include/kos/cdefs.h @@ -49,6 +49,19 @@ /** \brief Alias for \ref __pure. For BSD compatibility. */ #define __pure2 __pure /* ditto */ +/** \brief Mark something as deprecated. + This should be used to warn users that a function/type/etc will be removed + in a future version of KOS. */ +#define __deprecated __attribute__((deprecated)) + +/** \brief Mark something as deprecated, with an informative message. + This should be used to warn users that a function/type/etc will be removed + in a future version of KOS and to suggest an alternative that they can use + instead. + \param m A string literal that is included with the warning message + at compile time. */ +#define __depr(m) __attribute__((deprecated(m))) + /* Printf/Scanf-like declaration */ /** \brief Identify a function as accepting formatting like printf(). hooks/post-receive -- A pseudo Operating System for the Dreamcast. |