int w_BezierCurve_getControlPointCount(lua_State *L) { BezierCurve *curve = luax_checkbeziercurve(L, 1); lua_pushinteger(L, curve->getControlPointCount()); return 1; }