diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-04-04 23:11:52 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-04-04 23:11:52 +0000 |
commit | 8931a351763bab7adf45abbc170bb711ffddf83b (patch) | |
tree | 5d7ee8bd137af952ffb6b359958989067041e142 /util.c | |
parent | e826b3c791f291f41205a51805448110f3562b42 (diff) | |
download | perl-8931a351763bab7adf45abbc170bb711ffddf83b.tar.gz |
[win32] set up PUSHSTACK for __DIE__ and __WARN__ hooks also
p4raw-id: //depot/win32/perl@881
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1304,11 +1304,12 @@ die(pat, va_alist) SvREADONLY_on(msg); SAVEFREESV(msg); + PUSHSTACK(SI_DIEHOOK); PUSHMARK(SP); XPUSHs(msg); PUTBACK; perl_call_sv((SV*)cv, G_DISCARD); - + POPSTACK(); LEAVE; } } @@ -1369,11 +1370,12 @@ croak(pat, va_alist) SvREADONLY_on(msg); SAVEFREESV(msg); + PUSHSTACK(SI_DIEHOOK); PUSHMARK(SP); XPUSHs(msg); PUTBACK; perl_call_sv((SV*)cv, G_DISCARD); - + POPSTACK(); LEAVE; } } @@ -1428,11 +1430,12 @@ warn(pat,va_alist) SvREADONLY_on(msg); SAVEFREESV(msg); + PUSHSTACK(SI_WARNHOOK); PUSHMARK(SP); XPUSHs(msg); PUTBACK; perl_call_sv((SV*)cv, G_DISCARD); - + POPSTACK(); LEAVE; return; } |