X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=Magic.xs;h=9a07ac57e46d6e0785c665d7ebe5e4bdbd83c047;hp=95d728287cd04f71a3d172713946487360b0766c;hb=a5ab162c9a0aa14e6caccd7104d719912115898f;hpb=4eaf2c57794114c12c93c0c8faf9bc07b20182f7 diff --git a/Magic.xs b/Magic.xs index 95d7282..9a07ac5 100644 --- a/Magic.xs +++ b/Magic.xs @@ -349,6 +349,9 @@ typedef enum { OPc_PVOP, OPc_LOOP, OPc_COP, +#if VMG_HAS_PERL(5, 21, 5) + OPc_METHOP, +#endif OPc_MAX } opclass; @@ -364,7 +367,11 @@ STATIC const char *const vmg_opclassnames[] = { "B::PADOP", "B::PVOP", "B::LOOP", - "B::COP" + "B::COP", +#if VMG_HAS_PERL(5, 21, 5) + "B::METHOP", +#endif + NULL }; STATIC opclass vmg_opclass(const OP *o) { @@ -436,6 +443,10 @@ STATIC opclass vmg_opclass(const OP *o) { return OPc_BASEOP; else return OPc_PVOP; +#if VMG_HAS_PERL(5, 21, 5) + case OA_METHOP: + return OPc_METHOP; +#endif } return OPc_BASEOP;