Undo Output Control

version 3/110717 by Erik Temple

  • Home page
  • Beginning
  • Previous



  • Section - Undo save control

    Include (-
    [ VM_Undo result_code;
        @restoreundo result_code;
        return (~~result_code);
    ];

    [ VM_Save_Undo result_code;
    if (+ save undo state +) {
    @saveundo result_code;
    if (result_code == -1) { GGRecoverObjects(); return 2; }
    return (~~result_code);
    }
    else { return -2 ; }
    ];
    -) instead of "Undo" in "Glulx.i6t".


    Include (-

    [ VM_Undo result_code;
        @restore_undo result_code;
         return result_code;
    ];

    [ VM_Save_Undo result_code;
    if (+ save undo state +) {
    @save_undo result_code;
        return result_code;
    }
    else { return -2; }
    ];

    -) instead of "Undo" in "ZMachine.i6t".


    Undo Output Control ends here.