This gets us further in the qjsengine autotest.
Change-Id: I911c893b49d34b6ee2226a82dc4bb7f398f57d5a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
handle->int_32 = 0;
#endif
}
+ static void init(Handle<T> *handle, T *other)
+ {
+ handle->val = *reinterpret_cast<quint64 *>(other);
+ }
static void ref(Handle<T> *)
{
{ \
handle->object = 0; \
} \
+ static void init(Handle<Type> *handle, Type *obj) \
+ { \
+ handle->object = obj; \
+ } \
\
static void ref(Handle<Type> *handle) \
{ \
explicit Handle(T *obj)
{
- object = obj;
+ HandleOperations<T>::init(this, obj);
HandleOperations<T>::ref(this);
}