This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use croak_sv in threads
authorPali <pali@cpan.org>
Sun, 3 Dec 2017 16:01:10 +0000 (17:01 +0100)
committerTony Cook <tony@develop-help.com>
Mon, 15 Jan 2018 23:26:59 +0000 (10:26 +1100)
Now when croak_sv is available, there is no need to use croak() with SV* to
char* conversion.

dist/Devel-PPPort/parts/inc/threads

index 830fadf..9a8f6ac 100644 (file)
@@ -57,9 +57,9 @@ no_THX_arg(sv)
 
 void
 with_THX_arg(error)
-        char *error
+        SV *error
         PPCODE:
-                Perl_croak(aTHX_ "%s", error);
+                croak_sv(error);
 
 =tests plan => 2