diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-06-25 19:27:42 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-06-25 19:27:42 +0000 |
commit | 4a36906c901082f7d1273bc52cc5f404d69033f5 (patch) | |
tree | 7f8101f704fd986bd88765d5fe801feebdf69bc6 /opcode.pl | |
parent | 0c58d367e297133798f6e191e83d3087e2617588 (diff) | |
download | perl-4a36906c901082f7d1273bc52cc5f404d69033f5.tar.gz |
Enhance some macro robustness.
p4raw-id: //depot/perl@19852
Diffstat (limited to 'opcode.pl')
-rwxr-xr-x | opcode.pl | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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[]; |