update
This commit is contained in:
parent
4a5b9793ef
commit
8dafe932a8
|
@ -75,8 +75,7 @@
|
|||
|
||||
#define PHP_ARMA_NAME_DECLARE(cls, name, ...) \
|
||||
template <> \
|
||||
struct cls<__VA_ARGS__>::php_name \
|
||||
{ \
|
||||
struct cls<__VA_ARGS__>::php_name { \
|
||||
static constexpr const char val[] = name; \
|
||||
}
|
||||
|
||||
|
@ -106,7 +105,7 @@
|
|||
if (instanceof_function(ce, child::ce)) { \
|
||||
using base_t = util::arg_type<void(base)>::type; \
|
||||
auto v = base_t::operators::func(zv1, zv2, zv1); \
|
||||
if (rv) { \
|
||||
if (rv && v) { \
|
||||
ZVAL_COPY(rv, zv1); \
|
||||
} \
|
||||
return v; \
|
||||
|
@ -147,8 +146,7 @@ namespace php_arma
|
|||
template <typename T>
|
||||
struct arg_type;
|
||||
template <typename T, typename U>
|
||||
struct arg_type<T(U)>
|
||||
{
|
||||
struct arg_type<T(U)> {
|
||||
using type = U;
|
||||
};
|
||||
|
||||
|
|
Reference in New Issue