LIBRARY LINK SYMBOL

AbortQ


returns TRUE if Mathematica is in the process of an abort.

DetailsDetails

  • Used in C/C++ code in a library function called from Mathematica.
  • Code that runs for a long time should call AbortQ to see if the user has aborted the computation.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

This allows a long computation to be abortable from Mathematica:

while( !longTaskComplete()) {
doSomething():
if (libData->AbortQ()) {
return;
}
}
New to Mathematica? Find your learning path »
Have a question? Ask support »