File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,11 @@ class Wrapper
5757
5858 template <class U >
5959 static U *_obj (CPointer *pPtr)
60- {
61- if (!pPtr->IsValid ())
62- return NULL ;
63-
64- return Wrap<U>((T *)pPtr->m_ulAddr );
65- }
60+ { return Wrap<U>(__obj__<T>(pPtr)); }
6661
6762 template <class U >
6863 static CPointer *_ptr (U *pSelf)
69- {
70- return new CPointer ((unsigned long )pSelf->GetWrapped ());
71- }
64+ { return __ptr__<T>(pSelf->GetWrapped ()); }
7265private:
7366 T* m_pWrapped;
7467};
Original file line number Diff line number Diff line change @@ -319,6 +319,6 @@ void export_physics_object(scope _physics)
319319 manage_new_object_policy ()
320320 );
321321
322- PhysicsObject. attr (GET_SIZE_NAME) = sizeof (IPhysicsObject);
322+ PhysicsObject ADD_SIZE (IPhysicsObject)
323323 STORE_CLASS (IPhysicsObject, " PhysicsObject" )
324324}
You can’t perform that action at this time.
0 commit comments