Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/src/remap/remap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -996,10 +996,10 @@ o<on_abort> endsub
m2
----

CAUTION: Never use an `M2` in a O-word subroutine, including this one.
CAUTION: Never use an `M2` inside a O-word subroutine, including this one.
It will cause hard-to-find errors.
For instance, using an `M2` in a subroutine will not end the subroutine properly and will leave the subroutine NGC file open,
not your main program.

For instance, using an `M2` inside a subroutine (i.e between the `sub` an `endsub`) will not end the subroutine properly and will leave the subroutine NGC file open, not your main program.

Make sure `on_abort.ngc` is along the interpreter search path
(recommended location: `SUBROUTINE_PATH` so as not to clutter your `NC_FILES` directory with internal procedures).
Expand Down
Loading