mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 08:32:07 +02:00
Perl blessing fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1566 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d0de9fe229
commit
740f041c26
4 changed files with 11 additions and 24 deletions
|
|
@ -5,9 +5,6 @@
|
|||
#define new_pv(a) \
|
||||
(newSVpv((a) == NULL ? "" : (a), (a) == NULL ? 0 : strlen(a)))
|
||||
|
||||
#define new_bless(obj, stash) \
|
||||
sv_bless(newRV_noinc(newSViv(GPOINTER_TO_INT(obj))), stash)
|
||||
|
||||
#define is_hvref(o) \
|
||||
((o) && SvROK(o) && SvRV(o) && (SvTYPE(SvRV(o)) == SVt_PVHV))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue