mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Add `SCM_DEPRECATED' macro to declare deprecated C functions/variables.
* libguile/__scm.h (SCM_DEPRECATED): New macro.
This commit is contained in:
parent
5b2f2c7552
commit
743b887290
1 changed files with 11 additions and 0 deletions
|
@ -104,6 +104,17 @@
|
|||
* and then SCM_API marks them for export. */
|
||||
#define SCM_INTERNAL extern
|
||||
|
||||
/* The SCM_DEPRECATED macro is used in declarations of deprecated functions
|
||||
* or variables. Defining `SCM_BUILDING_DEPRECATED_CODE' allows deprecated
|
||||
* functions to be implemented in terms of deprecated functions, and allows
|
||||
* deprecated functions to be referred to by `scm_c_define_gsubr ()'. */
|
||||
#if !defined (SCM_BUILDING_DEPRECATED_CODE) \
|
||||
&& defined (__GNUC__) && (__GNUC__ >= 3)
|
||||
# define SCM_DEPRECATED SCM_API __attribute__ ((__deprecated__))
|
||||
#else
|
||||
# define SCM_DEPRECATED SCM_API
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* {Supported Options}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue