Ejemplo n.º 1
0
/** ~b2CircleShape()
 * 
 */
static int b2CircleShape__b2CircleShape(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "b2.CircleShape"));
    if (userdata->gc) {
      b2CircleShape *self = (b2CircleShape *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "~b2CircleShape: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "~b2CircleShape: Unknown exception");
  }
  return dub_error(L);
}
Ejemplo n.º 2
0
/** virtual btCollisionWorld::~btCollisionWorld()
 * src/vendor/bullet/src/BulletCollision/CollisionDispatch/btCollisionWorld.h:111
 */
static int btCollisionWorld__btCollisionWorld(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "bt.CollisionWorld"));
    if (userdata->gc) {
      btCollisionWorld *self = (btCollisionWorld *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "__gc: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "__gc: Unknown exception");
  }
  return dub_error(L);
}
Ejemplo n.º 3
0
/** TableView::~TableView()
 * include/mimas/TableView.h:54
 */
static int TableView__TableView(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "mimas.TableView"));
    if (userdata->gc) {
      TableView *self = (TableView *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "__gc: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "__gc: Unknown exception");
  }
  return dub_error(L);
}
Ejemplo n.º 4
0
/** ~ofPolyline()
 * 
 */
static int ofPolyline__ofPolyline(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "ofPolyline"));
    if (userdata->gc) {
      ofPolyline *self = (ofPolyline *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "__gc: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "__gc: Unknown exception");
  }
  return dub_error(L);
}
Ejemplo n.º 5
0
/** ~b2BiFrictionJointDef()
 * 
 */
static int b2BiFrictionJointDef__b2BiFrictionJointDef(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "b2.BiFrictionJointDef"));
    if (userdata->gc) {
      b2BiFrictionJointDef *self = (b2BiFrictionJointDef *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "~b2BiFrictionJointDef: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "~b2BiFrictionJointDef: Unknown exception");
  }
  return dub_error(L);
}
Ejemplo n.º 6
0
/** virtual btPolyhedralConvexShape::~btPolyhedralConvexShape()
 * src/vendor/bullet/src/BulletCollision/CollisionShapes/btPolyhedralConvexShape.h:40
 */
static int btPolyhedralConvexShape__btPolyhedralConvexShape(lua_State *L) {
    try {
        DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "bt.PolyhedralConvexShape"));
        if (userdata->gc) {
            btPolyhedralConvexShape *self = (btPolyhedralConvexShape *)userdata->ptr;
            delete self;
        }
        userdata->gc = false;
        return 0;
    } catch (std::exception &e) {
        lua_pushfstring(L, "__gc: %s", e.what());
    } catch (...) {
        lua_pushfstring(L, "__gc: Unknown exception");
    }
    return dub_error(L);
}
/** ~btRigidBodyConstructionInfo()
 * 
 */
static int btRigidBodyConstructionInfo__btRigidBodyConstructionInfo(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "bt.RigidBody.RigidBodyConstructionInfo"));
    if (userdata->gc) {
      btRigidBody::btRigidBodyConstructionInfo *self = (btRigidBody::btRigidBodyConstructionInfo *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "__gc: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "__gc: Unknown exception");
  }
  return dub_error(L);
}
Ejemplo n.º 8
0
/** HBoxLayout::~HBoxLayout()
 * include/mimas/HBoxLayout.h:51
 */
static int HBoxLayout__HBoxLayout(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "mimas.HBoxLayout"));
    if (userdata->gc) {
      HBoxLayout *self = (HBoxLayout *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "__gc: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "__gc: Unknown exception");
  }
  return dub_error(L);
}
/** virtual btSequentialImpulseConstraintSolver::~btSequentialImpulseConstraintSolver()
 * src/vendor/bullet/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h:113
 */
static int btSequentialImpulseConstraintSolver__btSequentialImpulseConstraintSolver(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "bt.SequentialImpulseConstraintSolver"));
    if (userdata->gc) {
      btSequentialImpulseConstraintSolver *self = (btSequentialImpulseConstraintSolver *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "__gc: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "__gc: Unknown exception");
  }
  return dub_error(L);
}
Ejemplo n.º 10
0
/** virtual b2RayCastCallback::~b2RayCastCallback()
 * vendor/Box2D/Box2D/Dynamics/b2WorldCallbacks.h:138
 */
static int b2RayCastCallback__b2RayCastCallback(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "b2.RayCastCallback"));
    if (userdata->gc) {
      b2RayCastCallback *self = (b2RayCastCallback *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "~b2RayCastCallback: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "~b2RayCastCallback: Unknown exception");
  }
  return dub_error(L);
}
Ejemplo n.º 11
0
/** ~btGeneric6DofSpringConstraint()
 * 
 */
static int btGeneric6DofSpringConstraint__btGeneric6DofSpringConstraint(lua_State *L) {
  try {
    DubUserdata *userdata = ((DubUserdata*)dub_checksdata_d(L, 1, "bt.Generic6DofSpringConstraint"));
    if (userdata->gc) {
      btGeneric6DofSpringConstraint *self = (btGeneric6DofSpringConstraint *)userdata->ptr;
      delete self;
    }
    userdata->gc = false;
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "__gc: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "__gc: Unknown exception");
  }
  return dub_error(L);
}