Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1 变量的类型一节 Z_TYPE 的参数写错。 #85

Open
wudikua opened this issue Dec 29, 2013 · 1 comment
Open

2.1 变量的类型一节 Z_TYPE 的参数写错。 #85

wudikua opened this issue Dec 29, 2013 · 1 comment

Comments

@wudikua
Copy link

wudikua commented Dec 29, 2013

以一个P结尾的宏的参数大多是_zval型变量。 此外获取变量类型的宏还有两个,分别是Z_TYPE和Z_TYPE_PP,前者的参数是zval型,而后者的参数则是_*zval。

@edengzv
Copy link
Contributor

edengzv commented May 30, 2015

这个没有错误吧,该节最后展示了这几个宏的定义:

#define Z_TYPE(zval)        (zval).type
#define Z_TYPE_P(zval_p)    Z_TYPE(*zval_p)
#define Z_TYPE_PP(zval_pp)  Z_TYPE(**zval_pp)

Z_TYPE_PP 的参数确实是 **zval 类型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants