mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
Fix #42 - Windows build error (again)
This commit is contained in:
parent
7982b64a14
commit
49fd695672
5
php_uv.c
5
php_uv.c
@ -52,13 +52,14 @@ ZEND_DECLARE_MODULE_GLOBALS(uv);
|
||||
#define uv_zend_wrong_parameter_class_error(...) zend_wrong_parameter_class_error(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#define WITH_STARTING_COMMA(...) , ##__VA_ARGS__
|
||||
#define UV_PARAM_OBJ_EX(dest, type, check_null, ce, ...) \
|
||||
{ \
|
||||
zval *zv; \
|
||||
Z_PARAM_PROLOGUE(0) \
|
||||
if (UNEXPECTED(!uv_parse_arg_object(_arg, &zv, check_null, ce, ##__VA_ARGS__, NULL))) { \
|
||||
if (UNEXPECTED(!uv_parse_arg_object(_arg, &zv, check_null, ce WITH_STARTING_COMMA(__VA_ARGS__), NULL))) { \
|
||||
if (!(_flags & ZEND_PARSE_PARAMS_QUIET)) { \
|
||||
zend_string *names = php_uv_concat_ce_names(ce, ##__VA_ARGS__, NULL); \
|
||||
zend_string *names = php_uv_concat_ce_names(ce WITH_STARTING_COMMA(__VA_ARGS__), NULL); \
|
||||
uv_zend_wrong_parameter_class_error(_flags & ZEND_PARSE_PARAMS_THROW, _i, ZSTR_VAL(names), _arg); \
|
||||
zend_string_release(names); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user