Skip to content

Commit

Permalink
Added function to clear lastError
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelABurr authored and d-torrance committed Feb 10, 2025
1 parent 6be8656 commit 6965da9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions M2/Macaulay2/d/actors5.d
Original file line number Diff line number Diff line change
Expand Up @@ -2175,6 +2175,9 @@ setupfun("threadTest",threadTest);
getLastError(e:Expr):Expr := Expr(lastError);
setupfun("lastError", getLastError);

clearLastError(e:Expr):Expr := (lastError = nullE;nullE);
setupfun("clearLastError", clearLastError);

-- Local Variables:
-- compile-command: "echo \"make: Entering directory \\`$M2BUILDDIR/Macaulay2/d'\" && make -C $M2BUILDDIR/Macaulay2/d actors5.o "
-- End:
1 change: 1 addition & 0 deletions M2/Macaulay2/m2/exports.m2
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ export {
"clean",
"clearAll",
"clearEcho",
"clearLastError",
"clearOutput",
"close",
"closeIn",
Expand Down

0 comments on commit 6965da9

Please sign in to comment.