int w_Joint_destroy(lua_State *L) { Joint *t = luax_checkjoint(L, 1); luax_catchexcept(L, [&](){ t->destroyJoint(); }); return 0; }
int w_Joint_destroy(lua_State *L) { Joint *t = luax_checkjoint(L, 1); EXCEPT_GUARD(t->destroyJoint();) return 0;