mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-20 16:31:51 +00:00
Fix CopyablePersistentTraits for v8 3.21.15 .. 3.21.18.x
This commit is contained in:
parent
19f30f5b1c
commit
988691d2dc
@ -37,8 +37,14 @@ namespace v8 {
|
|||||||
typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
|
typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
|
||||||
static const bool kResetInDestructor = true;
|
static const bool kResetInDestructor = true;
|
||||||
template<class S, class M>
|
template<class S, class M>
|
||||||
|
#if PHP_V8_API_VERSION >= 3021015
|
||||||
|
static V8_INLINE void Copy(const Persistent<S, M>& source,
|
||||||
|
CopyablePersistent* dest)
|
||||||
|
#else
|
||||||
V8_INLINE(static void Copy(const Persistent<S, M>& source,
|
V8_INLINE(static void Copy(const Persistent<S, M>& source,
|
||||||
CopyablePersistent* dest)) {
|
CopyablePersistent* dest))
|
||||||
|
#endif
|
||||||
|
{
|
||||||
// do nothing, just allow copy
|
// do nothing, just allow copy
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user