summaryrefslogtreecommitdiff
path: root/opcode.h
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.h
parent0c58d367e297133798f6e191e83d3087e2617588 (diff)
downloadperl-4a36906c901082f7d1273bc52cc5f404d69033f5.tar.gz
Enhance some macro robustness.
p4raw-id: //depot/perl@19852
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcode.h b/opcode.h
index 9c1537bb7d..159d74def8 100644
--- a/opcode.h
+++ b/opcode.h
@@ -21,10 +21,10 @@
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[];