Home | History | Annotate | Download | only in common
      1 /*
      2  * Typemaps support for types that may need to be downcast to derived types.
      3  * Make sure the proxy classes have a "newDerivedObject" implementation
      4  * (see javacode/* for examples).
      5  */
      6 
      7 /* Add more types to the list as needed. */
      8 
      9 %typemap(javaout) 	btCollisionShape *, const btCollisionShape * {
     10     long cPtr = $jnicall;
     11     return (cPtr == 0) ? null : $*javaclassname.newDerivedObject(cPtr, $owner);
     12   }
     13