int w_BezierCurve_getDegree(lua_State *L) { BezierCurve *curve = luax_checkbeziercurve(L, 1); lua_pushnumber(L, curve->getDegree()); return 1; }