summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-11-17 08:34:52 +0000
committerNicholas Clark <nick@ccl4.org>2010-11-17 08:36:37 +0000
commit7bff8c334b79055a65ea37cb51de6d9629880b6c (patch)
treef73a3596596171fcd0a666eaafd6aedd21c2dcdd /op.h
parentd90d5a3845e854b868ede5476fd329d1fb85fd46 (diff)
downloadperl-7bff8c334b79055a65ea37cb51de6d9629880b6c.tar.gz
Convert newSUB() to a macro wrapping Perl_newATTRSUB()
Provide a Perl_newSUB() function in mathoms.c for anyone referencing it by its full name.
Diffstat (limited to 'op.h')
-rw-r--r--op.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/op.h b/op.h
index 9a5ec94d08..c011d661f9 100644
--- a/op.h
+++ b/op.h
@@ -852,6 +852,8 @@ one of the OA_* constants from op.h.
? XopENTRY(Perl_custom_op_xop(aTHX_ o), xop_class) \
: (PL_opargs[(o)->op_type] & OA_CLASS_MASK))
+#define newSUB(f, o, p, b) Perl_newATTRSUB(aTHX_ (f), (o), (p), NULL, (b))
+
#ifdef PERL_MAD
# define MAD_NULL 1
# define MAD_PV 2