This commit is contained in:
CismonX 2019-12-09 05:23:55 +08:00
parent 4a5b9793ef
commit 8dafe932a8
1 changed files with 3 additions and 5 deletions

View File

@ -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;
};