]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - Magic.xs
Add support for ops of class UNOP_AUX
[perl/modules/Variable-Magic.git] / Magic.xs
index 33fc60e70e295a065e1a990fa0f878c0621ca3a3..40b438f831bef3f0d35a5bae6f70960a873f655d 100644 (file)
--- a/Magic.xs
+++ b/Magic.xs
@@ -391,6 +391,9 @@ typedef enum {
  OPc_COP,
 #if VMG_HAS_PERL(5, 21, 5)
  OPc_METHOP,
+#endif
+#if VMG_HAS_PERL(5, 21, 7)
+ OPc_UNOP_AUX,
 #endif
  OPc_MAX
 } opclass;
@@ -410,6 +413,9 @@ static const char *const vmg_opclassnames[] = {
  "B::COP",
 #if VMG_HAS_PERL(5, 21, 5)
  "B::METHOP",
+#endif
+#if VMG_HAS_PERL(5, 21, 7)
+ "B::UNOP_AUX",
 #endif
  NULL
 };
@@ -486,6 +492,10 @@ static opclass vmg_opclass(const OP *o) {
 #if VMG_HAS_PERL(5, 21, 5)
   case OA_METHOP:
    return OPc_METHOP;
+#endif
+#if VMG_HAS_PERL(5, 21, 7)
+  case OA_UNOP_AUX:
+   return OPc_UNOP_AUX;
 #endif
  }