diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2022-08-24 16:25:34 +0100 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2022-08-24 18:56:33 +0100 |
commit | f58ed7c7a9dd599e7a924a2105851c697f4f9d87 (patch) | |
tree | 086e3c9e6af3bff585a87929317e0b2877b86396 /utfebcdic.h | |
parent | 4bf5affd390cea77d98c6d56a0909666360abefc (diff) | |
download | perl-f58ed7c7a9dd599e7a924a2105851c697f4f9d87.tar.gz |
Add PUSHpvs("literal") macro family
This set of PUSH-style macros takes a string literal argument and pushes
it to the stack, optionally mortalizing it and/or extending the stack.
Previously, the best alternative was
mPUSHp("literal", 7);
which required the author to visually count the number of characters in
the string literal (7 in this case). These new macros fit the similar
pattern familiar to many functions such as `newSVpvs`, which takes a
string literal and counts it directly.
Diffstat (limited to 'utfebcdic.h')
0 files changed, 0 insertions, 0 deletions