src/script.cpp
/*!
 * \fn void run()
 * \brief runs the script
 * 
 * The script must have been compiled beforehand.
 * Calling run() on a script for which isReady() is false will 
 * result in an exception being thrown.
 */
\fn void run()
\brief runs the script

The script must have been compiled beforehand.
Calling run() on a script for which isReady() is false will
result in an exception being thrown.
\ fn void run () \ brief runs the script The script must have been compiled beforehand . Calling run () on a script for which isReady () is false will result in an exception being thrown .
void Script::run()
{
  if (d->program.isNull())
    throw std::runtime_error{ "Script was not compiled" };
  d->globals.clear();
  d->program.invoke({});
}
void Script :: run ( ) { if ( d -> program . isNull ( ) ) throw std :: runtime_error { " " } ; d -> globals . clear ( ) ; d -> program . invoke ( { } ) ; }
\fn void run()
 \brief runs the script
\ fn void run () \ brief runs the script