diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-10-13 11:05:49 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-10-13 11:08:06 +0100 |
commit | 2acdbac104deb9113282247f3dbee83c4705a525 (patch) | |
tree | bd905a0581a100f9ed3571004a781c65cb10bfef /handy.h | |
parent | 8290c3237cb4f93c9895ceba724c626dd529346f (diff) | |
download | perl-2acdbac104deb9113282247f3dbee83c4705a525.tar.gz |
Replace Perl_deprecate() with a macro that calls Perl_ck_warner()
Perl_deprecate was not part of the public API, and did not have a deprecate()
shortcut macro defined without -DPERL_CORE. Neither codesearch.google.com nor
CPAN::Unpack show any users outside the core.
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -902,6 +902,13 @@ void Perl_mem_log_del_sv(const SV *sv, const char *filename, const int linenumbe #define pTHX__VALUE #endif /* USE_ITHREADS */ +/* Perl_deprecate was not part of the public API, and did not have a deprecate() + shortcut macro defined without -DPERL_CORE. Neither codesearch.google.com nor + CPAN::Unpack show any users outside the core. */ +#ifdef PERL_CORE +# define deprecate(s) Perl_ck_warner(aTHX_ packWARN(WARN_DEPRECATED), "Use of " s " is deprecated") +#endif + /* * Local variables: * c-indentation-style: bsd |