summaryrefslogtreecommitdiff
path: root/opcode.pl
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-25 19:27:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-25 19:27:42 +0000
commit4a36906c901082f7d1273bc52cc5f404d69033f5 (patch)
tree7f8101f704fd986bd88765d5fe801feebdf69bc6 /opcode.pl
parent0c58d367e297133798f6e191e83d3087e2617588 (diff)
downloadperl-4a36906c901082f7d1273bc52cc5f404d69033f5.tar.gz
Enhance some macro robustness.
p4raw-id: //depot/perl@19852
Diffstat (limited to 'opcode.pl')
-rwxr-xr-xopcode.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcode.pl b/opcode.pl
index e5f6d3e7af..5a3beed671 100755
--- a/opcode.pl
+++ b/opcode.pl
@@ -90,10 +90,10 @@ print <<END;
START_EXTERN_C
-#define OP_NAME(o) (o->op_type == OP_CUSTOM ? custom_op_name(o) : \\
- PL_op_name[o->op_type])
-#define OP_DESC(o) (o->op_type == OP_CUSTOM ? custom_op_desc(o) : \\
- PL_op_desc[o->op_type])
+#define OP_NAME(o) ((o)->op_type == OP_CUSTOM ? custom_op_name(o) : \\
+ PL_op_name[(o)->op_type])
+#define OP_DESC(o) ((o)->op_type == OP_CUSTOM ? custom_op_desc(o) : \\
+ PL_op_desc[(o)->op_type])
#ifndef DOINIT
EXT char *PL_op_name[];