Skip to content
Snippets Groups Projects
Commit dd46fbdc authored by Mark Winter's avatar Mark Winter Committed by Eric Wait
Browse files

Initial code to actually replay edits

parent 25212afa
No related branches found
No related tags found
No related merge requests found
% ReplayActionsFile(filename)
function ReplayActionsFile(filename)
loadStruct = load(filename, 'ReplayEditActions');
replayActions = loadStruct.ReplayEditActions;
for i=1:length(replayActions)
chkOut = cell(1,length(replayActions(i).ret));
funcPtr = replayActions(i).funcPtr;
funcArgs = replayActions(i).args;
[bErr chkOut{:}] = Editor.ReplayableEditAction(funcPtr, funcArgs{:});
if ( bErr ~= replayActions(i).bErr )
fprintf('WARNING: Replaying action %d produced different result\n', i);
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment