From 3ac99aa88c7019c8313304ef74dd5bbb468a74bc Mon Sep 17 00:00:00 2001 From: Xusheng Date: Thu, 11 Jan 2024 14:23:54 +0800 Subject: Expose the BinaryView::ForgetUndoActions API and use avoid undo actions warning in the debugger --- binaryninjaapi.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index dbc0e68a..2c9f1582 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2615,6 +2615,12 @@ namespace BinaryNinja { */ void RevertUndoActions(const std::string& id); + /*! Forget the actions since a call to BeginUndoActions. + + \param id Id of UndoEntry created by BeginUndoActions + */ + void ForgetUndoActions(const std::string& id); + /*! \return Whether it is possible to perform an Undo */ bool CanUndo(); @@ -4119,6 +4125,12 @@ namespace BinaryNinja { */ void RevertUndoActions(const std::string& id); + /*! Forget the actions taken since a call to BeginUndoActions. + + \param id Id of UndoEntry created by BeginUndoActions + */ + void ForgetUndoActions(const std::string& id); + /*! \return Whether it is possible to perform an Undo */ -- cgit v1.3.1