RosettaCodeData/Task/Program-termination/Vedit-macro-language/program-termination.vedit

7 lines
500 B
Plaintext

if (#99 == 1) { Return } // Exit current macro. Return to calling macro.
if (#99 == 2) { Break_Out() } // Stop all macro execution and return to command mode.
if (#99 == 3) { Exit } // Exit Vedit. Prompt for saving any changed files.
if (#99 == 4) { Exit(4) } // As above, but return specified value (instead of 0) to OS
if (#99 == 5) { Xall } // Exit Vedit. Save changed files without prompting.
if (#99 == 6) { Qall } // Exit Vedit. Do not save any files.