Move parameter validation, and carp/croak generation into warnings::__chk.
authorNicholas Clark <nick@ccl4.org>
Sun, 20 Jun 2010 17:00:31 +0000 (18:00 +0100)
committerNicholas Clark <nick@ccl4.org>
Wed, 23 Jun 2010 07:44:42 +0000 (08:44 +0100)
commit96183d25c8bf116d31888a79fd63a86056518da1
treed8cd504205e771e7843586409137be286cddc57c
parent8787a7475e25239a0fffec22fe068e97240c2a51
Move parameter validation, and carp/croak generation into warnings::__chk.

This results in enabled, fatal_enabled, warnif, and warn as wrappers to __chk
selecting their desired behaviour, and eliminates duplicated code.
lib/warnings.pm
warnings.pl