src/script.cpp
/*!
 * \fn bool compile(CompileMode mode, FunctionCreator* fcreator = nullptr)
 * \brief Compiles the script
 * Returns true on success, false otherwise. 
 * If the compilation failed, use messages() to retrieve the error messages.
 * Warning: Calling this function while a script is compiling is undefined behavior.
 */
\fn bool compile(CompileMode mode, FunctionCreator* fcreator = nullptr)
\brief Compiles the script
Returns true on success, false otherwise.
If the compilation failed, use messages() to retrieve the error messages.
Warning: Calling this function while a script is compiling is undefined behavior.
\ fn bool compile ( CompileMode mode FunctionCreator * fcreator = nullptr ) \ brief Compiles the script Returns true on success false otherwise . If the compilation failed use messages () to retrieve the error messages . Warning : Calling this function while a script is compiling is undefined behavior .
bool Script::compile(CompileMode mode, FunctionCreator* fcreator)
{
  Engine *e = d->engine;
  d->function_creator = fcreator ? fcreator : d->function_creator;
  return e->compile(*this, mode);
}
bool Script :: compile ( CompileMode mode , FunctionCreator * fcreator ) { Engine * e = d -> engine ; d -> function_creator = fcreator ? fcreator : d -> function_creator ; return e -> compile ( * this , mode ) ; }
\fn bool compile(CompileMode mode, FunctionCreator* fcreator = nullptr)
 \brief Compiles the script
 Returns true on success, false otherwise.
\ fn bool compile ( CompileMode mode FunctionCreator * fcreator = nullptr ) \ brief Compiles the script Returns true on success false otherwise .