summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-10-13 11:05:49 +0100
committerNicholas Clark <nick@ccl4.org>2009-10-13 11:08:06 +0100
commit2acdbac104deb9113282247f3dbee83c4705a525 (patch)
treebd905a0581a100f9ed3571004a781c65cb10bfef /handy.h
parent8290c3237cb4f93c9895ceba724c626dd529346f (diff)
downloadperl-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index bd58bfed1a..6c049cb994 100644
--- a/handy.h
+++ b/handy.h
@@ -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