summaryrefslogtreecommitdiff
path: root/lib/assert.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/assert.pl')
-rw-r--r--lib/assert.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/assert.pl b/lib/assert.pl
index 4c9ebf20a0..768ae49570 100644
--- a/lib/assert.pl
+++ b/lib/assert.pl
@@ -11,6 +11,9 @@
# be printed out by &panic, which is just the stack-backtrace
# routine shamelessly borrowed from the perl debugger.
+warn( "The 'assert.pl' legacy library is deprecated and will be"
+ . " removed in the next major release of perl." );
+
sub assert {
&panic("ASSERTION BOTCHED: $_[$[]",$@) unless eval $_[$[];
}