/** * @brief Sets the function called when an error occurs * This lua_Cfunction will be called by lua if an error occus while executing this function * * @return void */ void setErrorFunction(const LuaFunction& errorFunc) { errorFunction = errorFunc.getReference(); }