projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
New XS::APItest's for sv_peek based on my DDumper work
[p5sagit/p5-mst-13.2.git]
/
ext
/
XS
/
APItest
/
APItest.xs
diff --git
a/ext/XS/APItest/APItest.xs
b/ext/XS/APItest/APItest.xs
index
99af4a0
..
b81e86d
100644
(file)
--- a/
ext/XS/APItest/APItest.xs
+++ b/
ext/XS/APItest/APItest.xs
@@
-852,6
+852,14
@@
rmagical_flags(sv)
XSRETURN(3);
void
+DPeek (sv)
+ SV *sv
+
+ PPCODE:
+ ST (0) = newSVpv (Perl_sv_peek (sv), 0);
+ XSRETURN (1);
+
+void
BEGIN()
CODE:
sv_inc(get_sv("XS::APItest::BEGIN_called", GV_ADD|GV_ADDMULTI));