12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #include "sys-defines.h"
- #include "extern.h"
- int
- _API_fmove (R___(Plotter *_plotter) double x, double y)
- {
- if (!_plotter->data->open)
- {
- _plotter->error (R___(_plotter)
- "fmove: invalid operation");
- return -1;
- }
-
- if (_plotter->drawstate->path)
- _API_endpath (S___(_plotter));
- _plotter->drawstate->pos.x = x;
- _plotter->drawstate->pos.y = y;
- return 0;
- }
|