QScriptValue REcmaLinetypePattern::hasDashAt (QScriptContext* context, QScriptEngine* engine) { //REcmaHelper::functionStart("REcmaLinetypePattern::hasDashAt", context, engine); //qDebug() << "ECMAScript WRAPPER: REcmaLinetypePattern::hasDashAt"; //QCoreApplication::processEvents(); QScriptValue result = engine->undefinedValue(); // public function: can be called from ECMA wrapper of ECMA shell: RLinetypePattern* self = getSelf("hasDashAt", context); //Q_ASSERT(self!=NULL); if (self==NULL) { return REcmaHelper::throwError("self is NULL", context); } if( context->argumentCount() == 1 && ( context->argument(0).isNumber() ) /* type: double */ ){ // prepare arguments: // argument isStandardType double a0 = (double) context->argument( 0 ). toNumber(); // end of arguments // call C++ function: // return type 'bool' bool cppResult = self->hasDashAt(a0); // return type: bool // standard Type result = QScriptValue(cppResult); } else { return REcmaHelper::throwError("Wrong number/types of arguments for RLinetypePattern.hasDashAt().", context); } //REcmaHelper::functionEnd("REcmaLinetypePattern::hasDashAt", context, engine); return result; }